]> git.ipfire.org Git - thirdparty/elfutils.git/commit
readelf: Actually dump hex or strings when -p or -x get section number.
authorMark Wielaard <mark@klomp.org>
Tue, 27 Aug 2019 14:09:39 +0000 (16:09 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 29 Aug 2019 16:05:34 +0000 (18:05 +0200)
commit1b9d343a8cbe14c2b2a3adebc962b2634a2be98a
treebfad3875ddb23e2e884aa1e69778f03e98c139a7
parentdf33285b60290fadefd140ee2fe616f750105d2f
readelf: Actually dump hex or strings when -p or -x get section number.

The readelf code did parse section numbers, but then failed to actually
dump the section found. Fixed by actually calling the dump function
(either the hex or string variant). Add testcase for readelf -x num.

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/ChangeLog
src/readelf.c
tests/ChangeLog
tests/run-readelf-test2.sh