Symbols Defined By The Linker - Texas Instruments TMS320C54x User Manual

Digital signal processors
Hide thumbs Also See for TMS320C54x:
Table of Contents

Advertisement

Assigning Symbols at Link Time

7.14.4 Symbols Defined by the Linker

7.14.5 Symbols Defined Only For C Support (–c or –cr Option)
7-60
The linker automatically defines several symbols that a program can use at
runtime to determine where a section is linked. These symbols are external,
so they appear in the link map. They can be accessed in any assembly
language module if they are declared with a .global directive. Values are
assigned to these symbols as follows:
.text
is assigned the first address of the .text output section.
(It marks the beginning of executable code.)
etext
is assigned the first address following the .text output section.
(It marks the end of executable code.)
.data
is assigned the first address of the .data output section.
(It marks the beginning of initialized data tables.)
edata is assigned the first address following the .data output section.
(It marks the end of initialized data tables.)
.bss
is assigned the first address of the .bss output section.
(It marks the beginning of uninitialized data.)
end
is assigned the first address following the .bss output section.
(It marks the end of uninitialized data.)
_ _STACK_SIZE
_ _SYSMEM_SIZE
is assigned the size of the .stack section.
is assigned the size of the .sysmem section.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C54x and is the answer not in the manual?

Table of Contents