Re: uint8_t SRAM variable for ATmega328p allocated at 0x060 (instead of 0x0100) in avr-gcc 4.6.2, 7.3.2

Kirill Shklovsky <[email protected]>
Newsgroups gmane.comp.hardware.avr.gcc
Message-ID <CABhZC8N0FCQh9QBxf2u=HMz=Cwt5KHe5rKviT56DZJ0SdYQVGg@mail.gmail.com>
> Yes, you ran into the binutils bug - the linker script is missing the
> KEEP directive for *.data. If your program does not have anything that
> goes into .data (non-zero initialized globals and static locals), then
> this bug gets exposed.

Thank you! Changing this line in the linker script resulted in the
correct behavior.  In the meantime I downloaded binutils 2.23, and it
looks like the fix has been applied. Out of curiosity, since what
version of binutils is the bugfix out, or has the patch been applied
to all the downloadable released versions?

Kirill
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.