http://sourceware.org/bugzilla/show_bug.cgi?id=13697
--- Comment #6 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-02-16 12:30:29 UTC --- (In reply to comment #5) > I think this pain is self-inflicted. > > You're using -m avr5 -Tdata 0x800100 instead of -m avr51. So you get the avr5 > ld script with the data section fudged to be at 0x800100. However, the data > section is stripped by -gc-sections. So the address change doesn't affect > following sections. They stay at the avr5 data memory region of 0x800060. atmega168 is element of avr5 and not element of avr51 (avr51 has ELPM instruction for example. ATmega168 has no ELPM). avr-gcc mixes devices with different RAM-start in the same core architecture, see mcu-devices.def: http://gcc.gnu.org/viewcvs/trunk/gcc/config/avr/avr-mcus.def?revision=184276&content-type=text%2Fplain&view=co -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils