bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/30152] New: a couple of incorrect error messages (minor)


From: petelomax at ymail dot com
Subject: [Bug binutils/30152] New: a couple of incorrect error messages (minor)
Date: Wed, 22 Feb 2023 02:42:31 +0000

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

            Bug ID: 30152
           Summary: a couple of incorrect error messages (minor)
           Product: binutils
           Version: 2.40
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: petelomax at ymail dot com
  Target Milestone: ---

Readelf displays a couple of errors when given my (admittedly unusual) manually
built elf x64 file. It matters very little to me, but a bug is a bug, y'know. 
First off, it says "There are no sections in this file." which is correct,
then:

readelf: Error: Size (0xb0) of section <no-strings> is not a multiple of its
sh_entsize (0x10)
readelf: Error: Corrupt DT_SYMTAB dynamic entry

Obviously 0xb0 /is/ a multiple of 0x10, and the program runs fine, which it
certainly would not were the DT_SYMTAB actually corrupt.

I guessed it must be somehow faking a section, and indeed I can see that it is
- search readelf.c for "overkill". My best guess is it is comparing the number
of entries in the Dynamic Link Info with the number of entries in the Symbol
Table, but it is clearly somewhere in that vicinity and hopefully fairly
trivial to fix (or perhaps just suppress) once you've identified precisely what
it is doing wrong.

You can download the offending file (a single plain 4MB ELF x64) from
http://phix.x10.mx/p64 (no need to actually run it, or grab any of the support
files that would need).

-- 
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]