[Bug ld/13812] Suboptimal default linker script cause "internal error: out of range error"

2013-03-27 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13812

Nick Clifton  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||nickc at redhat dot com
 Resolution||FIXED

--- Comment #8 from Nick Clifton  2013-03-27 13:24:29 
UTC ---
Hi Georg-Johann,

  I have applied a patch to update the default linker script as you suggested.

  I have not created a patch to change the error message, because I could not
think of anything helpful to actually tell the user.  Well not that would fit
into a single sentence anyway.  With a bit of luck, the linker patch will stop
further outofrange stub errors anyway, so the error message problem will become
moot.

Cheers
  Nick

-- 
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/13812] Suboptimal default linker script cause "internal error: out of range error"

2013-03-27 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13812

--- Comment #7 from cvs-commit at gcc dot gnu.org  2013-03-27 13:21:40 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:ni...@sourceware.org2013-03-27 13:21:38

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

Log message:
PR ld/13812
* scripttempl/avr.sc: Place trampolines before .progmem section.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ChangeLog.diff?cvsroot=src&r1=1.2573&r2=1.2574
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/scripttempl/avr.sc.diff?cvsroot=src&r1=1.15&r2=1.16

-- 
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/13812] Suboptimal default linker script cause "internal error: out of range error"

2013-03-12 Thread senthil.thecoder at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13812

Senthil Kumar Selvaraj  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 AssignedTo|unassigned at sourceware|senthil.thecoder at gmail
   |dot org |dot com

--- Comment #5 from Senthil Kumar Selvaraj  
2013-03-12 17:54:26 UTC ---
Created attachment 6931
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6931
Patch that loops over all 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/13812] Suboptimal default linker script cause "internal error: out of range error"

2013-03-12 Thread senthil.thecoder at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13812

Senthil Kumar Selvaraj  changed:

   What|Removed |Added

 Status|ASSIGNED|NEW

--- Comment #6 from Senthil Kumar Selvaraj  
2013-03-12 17:57:33 UTC ---
Oops - Disregard my previous comments - they were meant for bug #12494

-- 
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/13812] Suboptimal default linker script cause "internal error: out of range error"

2013-03-12 Thread senthil.thecoder at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13812

Senthil Kumar Selvaraj  changed:

   What|Removed |Added

 CC||senthil.thecoder at gmail
   ||dot com

--- Comment #4 from Senthil Kumar Selvaraj  
2013-03-12 17:53:02 UTC ---
Actually, the linker relaxation code already considers cases where deletion of
the ret in call/ret or jmp/ret might be unsafe - just that it missed this
specific case.

The case being that GCC puts the array containing the addresses of the labels
in a separate section (.rodata). The safe ret deletion logic assumes that only
relocations in the local section (containing the ret) could potentially have
symbols whose values evaluate to the address containing the ret, but that is
not true in this case.

Looping over all sections in the BFD, and repeating the check for each section
fixes the problem (see attached patch).

-- 
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/13812] Suboptimal default linker script cause "internal error: out of range error"

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

Georg-Johann Lay  changed:

   What|Removed |Added

 CC||konfera at efton dot sk

--- Comment #3 from Georg-Johann Lay  2012-05-03 
20:13:06 UTC ---
*** Bug 14058 has been marked as a duplicate of this bug. ***

-- 
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/13812] Suboptimal default linker script cause "internal error: out of range error"

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

--- Comment #2 from Georg-Johann Lay  2012-03-05 
21:48:30 UTC ---
Created attachment 6263
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6263
stubc.s: Assembler file

Assemble/Link with:

avr-as -mmcu=atmega2560 stubs.s -o stubs.o
avr-ld -mavr6 stubs.o

or at your option

avr-gcc -mmcu=atmega2560 stubs.s

Error message:

stubs.o: In function `main':
stubs.c:(.text.startup+0x0): warning: internal error: out of range error
stubs.c:(.text.startup+0x2): warning: internal error: out of range error

Relevant part of the map file:

.text   0x0x2720e
 *(.vectors)
 .vectors   0x   0xe4
e:/winavr/4.7.0-3/bin/../lib/gcc/avr/4.7.0/../../../../avr/lib/avr6/crtm2560.o
0x__vector_default
0x__vectors
 *(.vectors)
 *(.progmem.gcc*)
 *(.progmem*)
 .progmem.data  0x00e40x27100 stubs.o
0x00e4array4
0x7de4array3
0xfae4array2
0x000177e4array1
0x0001f4e4array0
0x000271e4. = ALIGN (0x2)
0x000271e4__trampolines_start = .
 *(.trampolines)
 .trampolines   0x000271e40x4 linker stubs
 *(.trampolines*)
0x000271e8__trampolines_end = .
 *(.jumptables)

-- 
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/13812] Suboptimal default linker script cause "internal error: out of range error"

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

--- Comment #1 from Georg-Johann Lay  2012-03-05 
21:36:52 UTC ---
Created attachment 6262
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6262
stubc.c: Simplified C test case

Compile with

avr-gcc -mmcu=atmega2560 stubs.c -S -Os

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