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

Reply via email to