|
NAMErgblink —
linker script file format
DESCRIPTIONThe linker script is an external file that allows the user to specify the order of sections at link time and in a centralized manner.A linker script consists on a series of banks followed by a list
of sections and, optionally, commands. They can be lowercase or uppercase,
it is ignored. Any line can contain a comment starting with
‘ ROMX $F ; This is a comment "Functions to read array" ALIGN 8 "Array aligned to 256 bytes" WRAMX 2 "Some variables" Numbers can be in decimal or hexadecimal format (the prefix is
‘ Files can be included by using the The possible bank types are: When a new bank statement is found, sections found after it will be placed right from the beginning of that bank. If the linker script switches to a different bank and then comes back to a previous one, it will continue from the last address that was used. The only two commands are
Note: The bank, alignment, address and type of
sections can be specified both in the source code and in the linker script.
For a section to be able to be placed with the linker script, the bank,
address and alignment must be left unassigned in the source code or be
compatible with what is specified in the linker script. For example,
‘ SEE ALSOrgbasm(1), rgblink(1), rgbfix(1), rgbds(5), rgbds(7)HISTORYrgblink was originally written by Carsten
Sørensen as part of the ASMotor package, and was later packaged in
RGBDS by Justin Lloyd. It is now maintained by a number of contributors at
https://github.com/gbdev/rgbds.
Visit the GSP FreeBSD Man Page Interface. |