bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/21820] New: readelf now exits with error reading an empty


From: michael.hudson at canonical dot com
Subject: [Bug binutils/21820] New: readelf now exits with error reading an empty section
Date: Mon, 24 Jul 2017 00:58:53 +0000

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

            Bug ID: 21820
           Summary: readelf now exits with error reading an empty section
           Product: binutils
           Version: 2.30 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: michael.hudson at canonical dot com
  Target Milestone: ---

As of
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=32ec889602502348b704cfb16e65c83dc3eec095
("Tidy up readelf's use of boolean values.") readelf errors on reading an empty
section from an object file:

((32ec889...))address@hidden:/opt/opensource/binutils/binutils/binutils$
./readelf  --hex-dump=.data alloc_system-d16b8f0e.0.o 
Section '.data' has no data to dump.
((32ec889...))address@hidden:/opt/opensource/binutils/binutils/binutils$ echo
$?
1

It's unclear if this is a desired consequence of this commit. It seems wrong to
me.

(This breaks diffoscope's tests, which is how I found this)

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