From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4D2C63858D37; Thu, 21 Apr 2022 19:59:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4D2C63858D37 From: "mliska at suse dot cz" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: general X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mliska at suse dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2022 19:59:45 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29082 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:=20 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=3Dfull -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:=20 x86 feature used: x86 $ echo '' | gcc -c -fcf-protection=3Dfull -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 --=20 You are receiving this mail because: You are on the CC list for the bug.=