AVR32795: Using the GNU Linker Scripts on AVR UC3 ... - Atmel
AVR32795: Using the GNU Linker Scripts on AVR UC3 ... - Atmel
AVR32795: Using the GNU Linker Scripts on AVR UC3 ... - Atmel
- TAGS
- linker
- scripts
- atmel
- www.atmel.com
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
5.3.2.2 Text<br />
32158A-<strong>AVR</strong>-01/11<br />
Figure 5-1. Memory mapping.<br />
.text :<br />
{<br />
*(.text .stub .text.* .gnu.link<strong>on</strong>ce.t.*)<br />
KEEP (*(.text.*pers<strong>on</strong>ality*))<br />
/* .gnu.warning secti<strong>on</strong>s are handled specially by elf32.em.*/<br />
*(.gnu.warning)<br />
} >FLASH AT>FLASH :FLASH =0xd703d703<br />
<str<strong>on</strong>g><strong>AVR</strong>32795</str<strong>on</strong>g><br />
The program may use external libraries (for example,<br />
gcc libraries, newlib) that use specific input secti<strong>on</strong>s<br />
Set <str<strong>on</strong>g>the</str<strong>on</strong>g> fill pattern for an entire secti<strong>on</strong><br />
Assign a secti<strong>on</strong> to a previously defined segment (cf PHDRS<br />
command)<br />
Specify a memory regi<strong>on</strong> for <str<strong>on</strong>g>the</str<strong>on</strong>g> .text secti<strong>on</strong> LMA<br />
Assign a secti<strong>on</strong> to a previously defined regi<strong>on</strong> of memory (cf. MEMORY<br />
command)<br />
NOTE When link-time garbage collecti<strong>on</strong> is in use (-gc-secti<strong>on</strong>s), it is often useful to mark<br />
secti<strong>on</strong>s that should not be eliminated. This is accomplished by surrounding an input<br />
secti<strong>on</strong>'s wildcard entry with KEEP().<br />
9