avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] uint8_t SRAM variable for ATmega328p allocated at 0x0


From: Kirill Shklovsky
Subject: Re: [avr-gcc-list] uint8_t SRAM variable for ATmega328p allocated at 0x060 (instead of 0x0100) in avr-gcc 4.6.2, 7.3.2
Date: Thu, 18 Apr 2013 11:21:10 -0400

> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]