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

2012-06-07 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13697

--- Comment #8 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2012-06-07 16:53:25 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:ni...@sourceware.org2012-06-07 16:53:11

Modified files:
ld : ChangeLog 
ld/scripttempl : avr.sc 

Log message:
PR 13697
* scripttempl/avr.sc (.data): Keep it.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ChangeLog.diff?cvsroot=srcr1=1.2454r2=1.2455
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/scripttempl/avr.sc.diff?cvsroot=srcr1=1.12r2=1.13

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


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

2012-06-07 Thread gjl at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13697

Georg-Johann Lay gjl at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #9 from Georg-Johann Lay gjl at gcc dot gnu.org 2012-06-07 
18:00:55 UTC ---
Fixed

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


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

2012-05-24 Thread gjl at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13697

Georg-Johann Lay gjl at gcc dot gnu.org changed:

   What|Removed |Added

Summary|[avr ] Wrong symbol values  |[avr] Wrong symbol values
   |with --gc-sections  |with --gc-sections

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


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

2012-05-23 Thread gjl at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13697

--- Comment #7 from Georg-Johann Lay gjl at gcc dot gnu.org 2012-05-23 
19:36:45 UTC ---
Created attachment 6417
  -- http://sourceware.org/bugzilla/attachment.cgi?id=6417
Tentative patch: Keep .data

This is a tentative patch to fix the issue by KEEPing .data.

Lightly tested with a small program.

Johann

ld/
PR 13697
* scripttempl/avr.sc (.data): Keep it.

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


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

2012-02-21 Thread matthieu.lemerre at cea dot fr
http://sourceware.org/bugzilla/show_bug.cgi?id=13697

Matthieu Lemerre matthieu.lemerre at cea dot fr changed:

   What|Removed |Added

 CC||matthieu.lemerre at cea dot
   ||fr

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


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

2012-02-16 Thread gjl at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13697

Georg-Johann Lay gjl at gcc dot gnu.org changed:

   What|Removed |Added

 Target||avr
 CC||eric.weddington at atmel
   ||dot com

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


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

2012-02-16 Thread gjl at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13697

--- Comment #1 from Georg-Johann Lay gjl at gcc dot gnu.org 2012-02-16 
10:21:47 UTC ---
Created attachment 6217
  -- http://sourceware.org/bugzilla/attachment.cgi?id=6217
heap-start.s

avr-gcc's assembler output

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


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

2012-02-16 Thread gjl at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13697

--- Comment #3 from Georg-Johann Lay gjl at gcc dot gnu.org 2012-02-16 
10:26:29 UTC ---
Created attachment 6219
  -- http://sourceware.org/bugzilla/attachment.cgi?id=6219
Console Output with -v -Wl,-v

Console output for the following command:

avr-gcc heap-start.c -mmcu=atmega168 -o heal-start.elf -Os -save-temps
-Wl,-Map,heap-start.map -Wl,--gc-sections -v -Wl,-v

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


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

2012-02-16 Thread gjl at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13697

--- Comment #2 from Georg-Johann Lay gjl at gcc dot gnu.org 2012-02-16 
10:22:58 UTC ---
Created attachment 6218
  -- http://sourceware.org/bugzilla/attachment.cgi?id=6218
heap-start.map

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


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

2012-02-16 Thread gjl at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13697

--- Comment #4 from Georg-Johann Lay gjl at gcc dot gnu.org 2012-02-16 
10:32:07 UTC ---
Created attachment 6220
  -- http://sourceware.org/bugzilla/attachment.cgi?id=6220
heal-start.elf: Disassembly from avr-objdump -d

avr-objdump -d heal-start.elf | grep -A 3 'main:'

0080 main:
  80:   80 e6   ldi r24, 0x60   ; 96
  82:   90 e0   ldi r25, 0x00   ; 0
  84:   08 95   ret

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


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

2012-02-16 Thread gjl at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13697

Georg-Johann Lay gjl at gcc dot gnu.org changed:

   What|Removed |Added

 CC||childbear0 at gmail dot com

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


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

2012-02-16 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13697

Alan Modra amodra at gmail dot com changed:

   What|Removed |Added

 CC||amodra at gmail dot com

--- Comment #5 from Alan Modra amodra at gmail dot com 2012-02-16 11:51:57 
UTC ---
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.

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


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

2012-02-16 Thread gjl at gcc dot gnu.org
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=184276content-type=text%2Fplainview=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