[Top][All Lists]

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

[Bug ld/13697] [avr ] Wrong symbol values with --gc-sections

From: gjl at gcc dot gnu.org
Subject: [Bug ld/13697] [avr ] Wrong symbol values with --gc-sections
Date: Thu, 16 Feb 2012 12:30:29 +0000


--- 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:


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.

reply via email to

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