* [Bug general/29082] New: Support GNU_PROPERTY_TYPE_0 in eu-readelf -n
@ 2022-04-21 19:59 mliska at suse dot cz
2022-04-21 20:09 ` [Bug general/29082] " mark at klomp dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: mliska at suse dot cz @ 2022-04-21 19:59 UTC (permalink / raw)
To: elfutils-devel
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug general/29082] Support GNU_PROPERTY_TYPE_0 in eu-readelf -n
2022-04-21 19:59 [Bug general/29082] New: Support GNU_PROPERTY_TYPE_0 in eu-readelf -n mliska at suse dot cz
@ 2022-04-21 20:09 ` mark at klomp dot org
2022-04-22 11:45 ` mliska at suse dot cz
2022-04-22 19:11 ` hjl.tools at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: mark at klomp dot org @ 2022-04-21 20:09 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29082
--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
Do you have a spec for that?
The GNU PROPERTY constants seem to change from time to time.
See e.g. the last glibc elf.h sync:
commit 31d551ae4dd8cf307c68f86b6c1ecac2f92b522a
Author: Mark Wielaard <mark@klomp.org>
Date: Thu Mar 24 23:06:09 2022 +0100
libelf: Sync elf.h from glibc.
Adds EM_INTELGT, NT_ARM_TAGGED_ADDR_CTRL, NT_ARM_PAC_ENABLED_KEYS,
ELF_NOTE_FDO, NT_FDO_PACKAGING_METADATA and OpenRISC 1000 specific
relocs.
It also adds and renames some GNU_PROPERTY constants. But none of the
constants the elfutils code uses was renamed or given a different
constant value.
dwelf_elf_e_machine_string was updated to handle EM_INTELGT.
Signed-off-by: Mark Wielaard <mark@klomp.org>
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug general/29082] Support GNU_PROPERTY_TYPE_0 in eu-readelf -n
2022-04-21 19:59 [Bug general/29082] New: Support GNU_PROPERTY_TYPE_0 in eu-readelf -n mliska at suse dot cz
2022-04-21 20:09 ` [Bug general/29082] " mark at klomp dot org
@ 2022-04-22 11:45 ` mliska at suse dot cz
2022-04-22 19:11 ` hjl.tools at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: mliska at suse dot cz @ 2022-04-22 11:45 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29082
Martin Liska <mliska at suse dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fweimer at redhat dot com,
| |hjl at sourceware dot org
--- Comment #2 from Martin Liska <mliska at suse dot cz> ---
(In reply to Mark Wielaard from comment #1)
> Do you have a spec for that?
Ccing Florian and H.J. who should know that.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug general/29082] Support GNU_PROPERTY_TYPE_0 in eu-readelf -n
2022-04-21 19:59 [Bug general/29082] New: Support GNU_PROPERTY_TYPE_0 in eu-readelf -n mliska at suse dot cz
2022-04-21 20:09 ` [Bug general/29082] " mark at klomp dot org
2022-04-22 11:45 ` mliska at suse dot cz
@ 2022-04-22 19:11 ` hjl.tools at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2022-04-22 19:11 UTC (permalink / raw)
To: elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29082
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
NT_GNU_PROPERTY_TYPE_0 is documented in
https://gitlab.com/x86-psABIs/Linux-ABI/-/wikis/uploads/0690db0a3b7e5d8a44e0271a4be54aa7/linux-gABI-and-or-2021-01-13.pdf
https://gitlab.com/x86-psABIs/x86-64-ABI/-/wikis/uploads/01de35b2c8adc7545de52604cc45d942/x86-64-psABI-2021-05-20.pdf
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-04-22 19:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-21 19:59 [Bug general/29082] New: Support GNU_PROPERTY_TYPE_0 in eu-readelf -n mliska at suse dot cz
2022-04-21 20:09 ` [Bug general/29082] " mark at klomp dot org
2022-04-22 11:45 ` mliska at suse dot cz
2022-04-22 19:11 ` hjl.tools at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).