From: "mliska at suse dot cz" <sourceware-bugzilla@sourceware.org>
To: elfutils-devel@sourceware.org
Subject: [Bug general/29082] New: Support GNU_PROPERTY_TYPE_0 in eu-readelf -n
Date: Thu, 21 Apr 2022 19:59:45 +0000 [thread overview]
Message-ID: <bug-29082-10460@http.sourceware.org/bugzilla/> (raw)
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.
next reply other threads:[~2022-04-21 19:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-21 19:59 mliska at suse dot cz [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-29082-10460@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=elfutils-devel@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).