Download CodeWarrior™ Development Studio for Freescale™ 56800/E Hybrid

Transcript
Freescale Semiconductor, Inc.
ELF Linker
Linker Command File Keyword Listing
ADDR
The ADDR function returns the address of the named section or memory segment.
Prototype
ADDR (sectionName | segmentName)
In the example below, ADDR is used to assign the address of ROOT to the symbol
__rootbasecode.
Example
MEMORY{
ROOT
(RWX) : ORIGIN = 0x8000, LENGTH = 0
}
SECTIONS{
.code :
{
__rootbasecode = ADDR(ROOT);
*(.text);
} > ROOT
}
ALIGN
The ALIGN function returns the value of the location counter aligned on a boundary
specified by the value of alignValue. The alignValue must be a power of two.
290
Targeting DSP56F80x/DSP56F82x Controllers
For More Information: www.freescale.com