https://sourceware.org/bugzilla/show_bug.cgi?id=28488
--- Comment #6 from Mark Wielaard <mark at klomp dot org> --- 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=gold && eu-elflint --gnu-ld ./a.out No errors $ eu-readelf -l a.out Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz 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 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 .bss 04 [RELRO: .dynamic] 05 [RO: .note.ABI-tag .note.gnu.property .note.gnu.build-id] 06 [RO: .eh_frame_hdr] 07 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-version 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 0 0 4 [ 3] .note.gnu.property NOTE 0000000000400274 00000274 00000020 0 A 0 0 4 [ 4] .note.gnu.build-id NOTE 0000000000400294 00000294 00000024 0 A 0 0 4 [27] .note.gnu.gold-version NOTE 0000000000000000 000029e0 0000001c 0 0 0 4 -- You are receiving this mail because: You are on the CC list for the bug.