[Bug ld/12161] Unconforming ELF file causes SIGSEGV in avr-ld

2010-10-31 Thread meiermic at ee dot ethz.ch
http://sourceware.org/bugzilla/show_bug.cgi?id=12161

--- Comment #3 from meiermic at ee dot ethz.ch 2010-10-31 18:16:44 UTC ---
Hi,

   Please could you try out the uploaded patch ?

I applied it to the 2.18 sources, the problem still persists. I had trouble
getting the Debian sources, but I can get that another shot.

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12161] New: Unconforming ELF file causes SIGSEGV in avr-ld

2010-10-25 Thread meiermic at ee dot ethz.ch
http://sourceware.org/bugzilla/show_bug.cgi?id=12161

   Summary: Unconforming ELF file causes SIGSEGV in avr-ld
   Product: binutils
   Version: 2.18
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
AssignedTo: unassig...@sources.redhat.com
ReportedBy: meier...@ee.ethz.ch


Created attachment 5085
  -- http://sourceware.org/bugzilla/attachment.cgi?id=5085
ELF file which causes avr-ld to crash

The attached ELF file causes avr-ld to crash:

$ avr-ld govrout.o 
Segmentation fault



The ELF file is not a valid ELF file, the .e_info field of the .symtab section
header has the value 1, though the last local symbol is at index 1 and thus the
.e_info should be 2.

I think ld should at least print an error message instead of crashing.



I am running avr-ld on Linux, see below:

$ avr-ld --version
GNU ld (GNU Binutils) 2.18.0.20080103 (WinAVR 20080610)

(that is the Debian 5.0 package)

$ uname -a
Linux thecomputer 2.6.26-2-amd64 #1 SMP Thu Sep 16 15:56:38 UTC 2010 x86_64
GNU/Linux

-- 
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
http://lists.gnu.org/mailman/listinfo/bug-binutils