warning: allocated section '.stack' not in segement???

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi guys,

I'm trying to compile some examples from AT32UC3B-1.1.1 in AVR32 Studio, and I always get these 4 warnings when linking elf file:

Quote:

warning: allocated section `.dalign' not in segment
warning: allocated section `.bss' not in segment
warning: allocated section `.heap' not in segment
warning: allocated section `.stack' not in segment

so why?

Cheng

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Found in the framework FAQ html (/.docsrc/AVR32_Faq.html#GCC_WARNING)

This warning is a known issue and it doesn't prevent the firmware from running on target correctly.
Explanation:

When using the default linker scripts provided with avr32-gcc, the ELF LOAD program headers are generated automatically from the output sections, including BSS and the stack which are only allocated areas.

In its current revision, avr32program programs allocated LOAD program headers that do not have to be filled with data from the ELF file, which is wasting programming time.

This behavior of avr32program will be changed in a future release, but until this is achieved, the linker scripts provided with the software framework are changed to place the allocated-only output sections in NULL ELF program headers ignored by avr32program, hence the warnings when linking.

-sma

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ok, thanks for your answer.