[Toybox] [PATCH] readelf: various fixes.

enh enh at google.com
Sat Feb 29 20:21:19 PST 2020


Add -e, and stop documenting no-op -W.

Fix sign issues, and add a few extra sanity checks.

Redo the BE/LE 16/32/64 reading.

Remove the NOSPACE=1 from the -l test, and fix the -l code to match the
binutils output. Most usefully, this fixes the weird way the NULL
section's empty name would cause misalignment in the section to segment
mapping output.

Add a test for -s (symbol table).
---
 tests/readelf.test     |  19 +++-
 toys/pending/readelf.c | 252 +++++++++++++++++++++++------------------
 2 files changed, 160 insertions(+), 111 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-readelf-various-fixes.patch
Type: text/x-patch
Size: 19157 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20200229/f8488499/attachment-0002.bin>


More information about the Toybox mailing list