public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [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

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).