https://sourceware.org/bugzilla/show_bug.cgi?id=29082
Bug ID: 29082
Summary: Support GNU_PROPERTY_TYPE_0 in eu-readelf -n
Product: elfutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: general
Assignee: unassigned at sourceware dot org
Reporter: mliska at suse dot cz
CC: elfutils-devel at sourceware dot org, mark at klomp dot org
Target Milestone: ---
Please support the following:
$ readelf -n a.o
Displaying notes found in: .note.gnu.property
Owner Data size Description
GNU 0x00000020 NT_GNU_PROPERTY_TYPE_0
Properties: x86 ISA used:
x86 feature used: x86
$ eu-readelf -n a.o
Note section [ 4] '.note.gnu.property' of 48 bytes at offset 0x1c0:
Owner Data size Type
GNU 32 GNU_PROPERTY_TYPE_0
X86 0xc0010002 data: 00 00 00 00
X86 0xc0010001 data: 01 00 00 00
So the data output can be parsed to 'x86'.
On the other hand, 'Properties: x86 feature' are printed quite fine:
$ echo '' | gcc -c -fcf-protection=full -x c - -o a.o && readelf -n a.o
Displaying notes found in: .note.gnu.property
Owner Data size Description
GNU 0x00000010 NT_GNU_PROPERTY_TYPE_0
Properties: x86 feature: IBT, SHSTK
GNU 0x00000020 NT_GNU_PROPERTY_TYPE_0
Properties: x86 ISA used:
x86 feature used: x86
$ echo '' | gcc -c -fcf-protection=full -x c - -o a.o && eu-readelf -n a.o
Note section [ 6] '.note.gnu.property' of 80 bytes at offset 0x98:
Owner Data size Type
GNU 16 GNU_PROPERTY_TYPE_0
X86 FEATURE_1_AND: 00000003 IBT SHSTK
GNU 32 GNU_PROPERTY_TYPE_0
X86 0xc0010002 data: 00 00 00 00
X86 0xc0010001 data: 01 00 00 00
--
You are receiving this mail because:
You are on the CC list for the bug.