Specifications

12-4 Programmer’s Guide Sega
Psy-Q Development System
Linker Command Files
Command files contain instructions for the Linker, about source files and how to
organise them. The Linker command file syntax is much like the Assembler syntax,
with the following commands available:
Commands INCLUDE filename Specify name of object file to be read.
INCLIB filename Specify library file to use
ORG address Specify ORG address for output
WORKSPACE address Specify new target workspace address
name EQU value Equate name to value
REGS pc=address Set initial PC value
name GROUP attributes Declare group
name SECTION attributes Declare section with attributes
SECTION name[,group] Declare section, and optionally specify its
group
name ALIAS oldname Specify an ALIAS for a symbol name
UNIT unitnum Specify destination unit number
Group attributes:
BSS group is unitialised data
ORG(address) specify group's org address
OBJ(address) specify group's obj address
OBJ( ) group's obj address follows on from previous group
OVER(group) overlay specified group
WORD (68000 only) group is absolute word addressable
FILE("filename") write group's contents to specified file
SIZE(maxsize) specify maximum allowable size
Remarks
Sections within a group are in the order that section definitions are encountered
in the command file or object/library files.
Any sections that are not placed in a specified group will be grouped together at
the beginning of the output.
Groups are output in the order in which they are declared in the Linker command
file or the order in which they are encountered in the object and library files.
Sections which are declared with attributes, (i.e. not in a group) in either the
object or library files, may be put into a specified group by the appropriate
declaration in the Linker command file.