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
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
18 <str<strong>on</strong>g><strong>AVR</strong>32795</str<strong>on</strong>g><br />
Q: When compiling <str<strong>on</strong>g>the</str<strong>on</strong>g> ARV Software Framework examples, I got <str<strong>on</strong>g>the</str<strong>on</strong>g> following<br />
kinds of warnings:<br />
ld: uc3a0512-ctrlpanel.elf: warning: allocated secti<strong>on</strong> ‘.dalign’ not in segment<br />
ld: uc3a0512-ctrlpanel.elf: warning: allocated secti<strong>on</strong> ‘.bss’ not in segment<br />
ld: uc3a0512-ctrlpanel.elf: warning: allocated secti<strong>on</strong> ‘.heap’ not in segment<br />
ld: uc3a0512-ctrlpanel.elf: warning: allocated secti<strong>on</strong> ‘.stack’ not in segment<br />
What are <str<strong>on</strong>g>the</str<strong>on</strong>g>se warnings?<br />
A: These are normal warnings, and you d<strong>on</strong>'t need to care about <str<strong>on</strong>g>the</str<strong>on</strong>g>m. Here is an<br />
explanati<strong>on</strong> of <str<strong>on</strong>g>the</str<strong>on</strong>g>se warnings:<br />
When using <str<strong>on</strong>g>the</str<strong>on</strong>g> default linker scripts provided with avr32-gcc, <str<strong>on</strong>g>the</str<strong>on</strong>g> ELF LOAD<br />
program headers are generated automatically from <str<strong>on</strong>g>the</str<strong>on</strong>g> output secti<strong>on</strong>s, including<br />
BSS and <str<strong>on</strong>g>the</str<strong>on</strong>g> stack which are <strong>on</strong>ly allocated areas.<br />
In its current revisi<strong>on</strong>, avr32program programs allocate LOAD program headers<br />
that do not have to be filled with data from <str<strong>on</strong>g>the</str<strong>on</strong>g> ELF file, which wastes time. This<br />
avr32program behavior will be changed in a future release, but until this is<br />
achieved, <str<strong>on</strong>g>the</str<strong>on</strong>g> linker scripts provided with <strong>AVR</strong> Software Framework are modified<br />
to place <str<strong>on</strong>g>the</str<strong>on</strong>g> allocated-<strong>on</strong>ly output secti<strong>on</strong>s in NULL ELF program headers, which<br />
are ignored by avr32program, explaining <str<strong>on</strong>g>the</str<strong>on</strong>g> warnings when linking.<br />
32158A-<strong>AVR</strong>-01/11