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...))mwhudson@aeglos:/opt/opensource/binutils/binutils/binutils$
./readelf  --hex-dump=.data alloc_system-d16b8f0e.0.o 
Section '.data' has no data to dump.
((32ec889...))mwhudson@aeglos:/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.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to