[Top][All Lists]

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

[Bug binutils/21133] New: Readelf doesn't work about malformed ELF

From: zidsoft at gmail dot com
Subject: [Bug binutils/21133] New: Readelf doesn't work about malformed ELF
Date: Sun, 12 Feb 2017 23:41:43 +0000


            Bug ID: 21133
           Summary: Readelf doesn't work about malformed ELF
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: zidsoft at gmail dot com
  Target Milestone: ---

Created attachment 9799
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9799&action=edit
Testcase elf

It's possible to create an ELF file that readelf will perfectly read, but isn't
valid according to the spec, this later caused some confusion when ld tried to
link it against something.

I spoke with Alan Modra to figure out what was going on with the attached
testcase I was given, and he informed me the ELF has a local after a global in
the symtab, which is not allowed.

Would it be possible to get a warning added to readelf for this? I had assumed
if readelf could understand it that the ELF was proper. It along with nm
slightly misleadingly suggest that _start is a valid global symbol, when ld
will silently ignore it.

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]