]> git.ipfire.org Git - thirdparty/elfutils.git/commit
readelf: print_attributes (-A) robustify and handle non-gnu attributes.
authorMark Wielaard <mjw@redhat.com>
Fri, 21 Nov 2014 22:26:35 +0000 (23:26 +0100)
committerMark Wielaard <mjw@redhat.com>
Wed, 26 Nov 2014 19:20:10 +0000 (20:20 +0100)
commit9644aaff5f2872061b1a09afac3f2d0d4ad9a1c2
tree5c9ef1bd4b0fa398c8ee6484256ae60e6216b9c7
parent712c8faddc08844fb1f2814c8b6e817f03b0698e
readelf: print_attributes (-A) robustify and handle non-gnu attributes.

print_attributes wasn't robust against empty or broken attribute sections.
It also only handled GNU attributes. But the arm backend contains some
none-GNU attributes. The difference is in how to handle the tag arguments.

Adds a new test run-readelf-A.sh for both gnu (ppc32) and non-gnu (arm)
attributes.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
src/ChangeLog
src/readelf.c
tests/ChangeLog
tests/Makefile.am
tests/run-readelf-A.sh [new file with mode: 0755]
tests/testfileppc32attrs.o.bz2 [new file with mode: 0644]