Page MenuHomeFreeBSD

readelf(1) -S: Include zero index and match binutils' no-name
ClosedPublic

Authored by cem on Dec 4 2016, 2:39 AM.
Tags
None
Referenced Files
F153261401: D8707.diff
Mon, Apr 20, 3:08 AM
Unknown Object (File)
Wed, Apr 15, 4:36 AM
Unknown Object (File)
Thu, Apr 9, 9:43 PM
Unknown Object (File)
Tue, Apr 7, 11:44 AM
Unknown Object (File)
Mon, Apr 6, 8:14 AM
Unknown Object (File)
Mon, Apr 6, 5:58 AM
Unknown Object (File)
Sun, Apr 5, 11:16 AM
Unknown Object (File)
Sun, Apr 5, 8:54 AM
Subscribers
None

Details

Summary

Include the SHN_UNDEF (zero) index special section in extended-attribute
ELF files, like GNU binutils' readelf.

Additionally, print "<no-name>" for sections without names, like GNU
binutils.

Test Plan

This is the last change needed to elftoolchain to match binutils behavior for
the coredump_phnum test case.

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 6135
Build 6391: arc lint + arc unit

Event Timeline

cem retitled this revision from to readelf(1) -S: Include zero index and match binutils' no-name.
cem updated this object.
cem edited the test plan for this revision. (Show Details)
cem added a reviewer: emaste.
contrib/elftoolchain/readelf/readelf.c
6560

For parity with binutils.

6566

(Only skip sections if there was actually an error — it's valid for ELF files to have a SHN_UNDEX index section.)

kaiw edited edge metadata.

Patch looks good to me!

This revision is now accepted and ready to land.Dec 7 2016, 5:41 PM
This revision was automatically updated to reflect the committed changes.