From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 645BB3857802; Fri, 22 Oct 2021 14:03:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 645BB3857802 From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug tools/28488] phdr[6]: unknown object file note type 32 with owner name '' at offset 48 Date: Fri, 22 Oct 2021 14:03:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: tools X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org 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: Message-ID: In-Reply-To: References: 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: Fri, 22 Oct 2021 14:03:20 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28488 --- Comment #6 from Mark Wielaard --- So with on fedora 34, x86_64: gcc (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1) GNU gold (version 2.35.2-6.fc34) 1.16 eu-elflint (elfutils) 0.185 $ echo 'int main() { return 0; }' | gcc -x c - -fuse-ld=3Dgold && eu-elflint --gnu-ld ./a.out No errors $ eu-readelf -l a.out=20 Program Headers: Type Offset VirtAddr PhysAddr FileSiz Me= mSiz Flg Align PHDR 0x000040 0x0000000000400040 0x0000000000400040 0x0001f8 0x0001f8 R 0x8 INTERP 0x000238 0x0000000000400238 0x0000000000400238 0x00001c 0x00001c R 0x1 [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2] LOAD 0x000000 0x0000000000400000 0x0000000000400000 0x0006d8 0x0006d8 R E 0x1000 LOAD 0x000e28 0x0000000000401e28 0x0000000000401e28 0x0001e0 0x0001e1 RW 0x1000 DYNAMIC 0x000e38 0x0000000000401e38 0x0000000000401e38 0x0001a0 0x0001a0 RW 0x8 NOTE 0x000254 0x0000000000400254 0x0000000000400254 0x000064 0x000064 R 0x4 GNU_EH_FRAME 0x0006a4 0x00000000004006a4 0x00000000004006a4 0x000034 0x000034 R 0x4 GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x10 GNU_RELRO 0x000e28 0x0000000000401e28 0x0000000000401e28 0x0001d8 0x0001d8 RW 0x8 Section to Segment mapping: Segment Sections... 00=20=20=20=20=20 01 [RO: .interp] 02 [RO: .interp .note.ABI-tag .note.gnu.property .note.gnu.build-id .dynsym .dynstr .gnu.hash .gnu.version .gnu.version_r .rela.dyn .init .text .fini .rodata .eh_frame .eh_frame_hdr] 03 [RELRO: .fini_array .init_array .dynamic .got .got.plt] .data .b= ss 04 [RELRO: .dynamic] 05 [RO: .note.ABI-tag .note.gnu.property .note.gnu.build-id] 06 [RO: .eh_frame_hdr] 07=20=20=20=20=20 08 [RELRO: .fini_array .init_array .dynamic .got .got.plt] Note that there is only PT_NOTE segment and it doesn't cover the gold-versi= on note section because it isn't an allocated note section: $ eu-readelf -S ./a.out | grep note [ 2] .note.ABI-tag NOTE 0000000000400254 00000254 00000020 = 0 A=20 0 0 4 [ 3] .note.gnu.property NOTE 0000000000400274 00000274 00000020 = 0 A=20 0 0 4 [ 4] .note.gnu.build-id NOTE 0000000000400294 00000294 00000024 = 0 A=20 0 0 4 [27] .note.gnu.gold-version NOTE 0000000000000000 000029e0 0000001c= 0=20 0 0 4 --=20 You are receiving this mail because: You are on the CC list for the bug.=