bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/21133] Readelf doesn't warn about malformed ELF


From: nickc at redhat dot com
Subject: [Bug binutils/21133] Readelf doesn't warn about malformed ELF
Date: Mon, 13 Feb 2017 11:48:23 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=21133

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |nickc at redhat dot com
         Resolution|---                         |WORKSFORME

--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
Hi Peter,

> Would it be possible to get a warning added to readelf for this?

We added a warning for this last year. :-)  It will be in the 2.28 release, or
you could download the latest development sources and try for yourself.  You
should see:

  $ readelf --syms basm.o

Symbol table '.symtab' contains 7 entries:
   Num:    Value          Size Type    Bind   Vis      Ndx Name
     0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
     1: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS file.asm
     2: 0000000000000000     0 SECTION LOCAL  DEFAULT    1 
     3: 0000000000000000     0 SECTION LOCAL  DEFAULT    2 
     4: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT    1 message
     5: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT    2 _start
     6: 000000000000000a     0 NOTYPE  LOCAL  DEFAULT    2 bar
readelf: Warning: local symbol 6 found at index >= .symtab's sh_info value of 6

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]