166
Chapter 3: Reference
The Symbols Tab
[START ADDRESS]
address
#comment text
Lines without a preceding header are assumed to be symbol definitions
in one of the [VARIABLES] formats.
Example
This is an example GPA file that contains several different kinds of
records.
[SECTIONS]
prog 00001000..0000101F
data 40002000..40009FFF
common FFFF0000..FFFF1000
[FUNCTIONS]
main 00001000..00001009
test 00001010..0000101F
[VARIABLES]
total 40002000 4
value 40008000 4
[SOURCE LINES]
File: main.c
10 00001000
11 00001002
14 0000100A
22 0000101E
File: test.c
5 00001010
7 00001012
11 0000101A
SECTIONS
Use SECTIONS to define symbols for regions of memory, such as
sections, segments, or classes.
NOTE: To enable section relocation, section definitions must appear before any other
definitions in the file.