Bug#686173: ld segfaults when linking uncomforming ELF

2012-08-30 Thread Hakan Ardo
Thanx!
I'm uploading a new version binutils-avr with this patch. Please
verify that it solves the problem.

On Wed, Aug 29, 2012 at 5:54 PM, Scott Howard showard...@gmail.com wrote:
 owner 686173
 submitter 686173 jack23...@hotmail.com
 reassign 686173 binutils-avr 2.20.1-2
 severity 686173 serious
 tags 686173 patch
 forwarded 686173 http://sourceware.org/bugzilla/show_bug.cgi?id=12161
 thanks

 The following upstream bug [1] appears in Debian and the patch should
 be applied to the debian sources [2].

 When compiling the Ethernet library examples in the arduino package
 for a mega 256 or ADK target board, ld will crash with a segfault.
 When the below patch is applied to the Debian sources, it compiles
 cleanly.

 It's related to the fact that the mega 256 target board uses the
 -Wl,--relax linker option since it has greater than 128 kB of memory
 [3] which somehow started causing problems once code was compiled with
 gcc 4.7.

 Thank you!
 Regards,
 Scott



 [1] http://sourceware.org/bugzilla/show_bug.cgi?id=12161
 [2] 
 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-avr.c.diff?cvsroot=srconly_with_tag=binutils-2_22-branchr1=1.51r2=1.51.2.1
 [3] http://sourceware.org/bugzilla/show_bug.cgi?id=13612



-- 
Håkan Ardö


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#686173: ld segfaults when linking uncomforming ELF

2012-08-30 Thread Scott Howard
On Thu, Aug 30, 2012 at 7:03 AM, Hakan Ardo ha...@debian.org wrote:
 Thanx!
 I'm uploading a new version binutils-avr with this patch. Please
 verify that it solves the problem.

Verified on a wheezy machine, thanks Hakan.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org