Download i960 Processor Software Utilities User`s Guide

Transcript
Linker Command Language
A
3. To place COMMON sections from a specific file into a particular section,
use this form:
SECTIONS {
xxx : { filename.o(COMMON) }
}
4. The following puts a symbol in the output symbol table for each file
that contributes a .txt input section to the .utxt output section:
SECTIONS {
.utxt: {
CREATE_OBJECT_SYMBOLS
*(.txt)
}
}
If COMMON is not in the linker directive file in a final link, uninitialized
variables are placed by default into the .bss section.
Allocating the Output Sections (>region, ALIGN, GROUP)
You can allocate an output section by:
• explicit addresses
• alignment
• memory region name
• memory attribute
When allocating the output sections, the linker maintains the default or
specified alignment. The linker processes the output sections in the
following order:
1. output sections with explicit starting addresses.
2. output sections with memory-region names or attributes, placing each
section into the first appropriately configured, unallocated region of
sufficient size.
3. output sections with no location specifications, placing each section
into the first appropriate unallocated region of sufficient size.
For information on configuring memory regions, see the MEMORY:
Configuring Memory Regions section.
A-15