https://sourceware.org/bugzilla/show_bug.cgi?id=26681
Bug ID: 26681 Summary: The section flag 'o' doesn't work on NOTE section Product: binutils Version: 2.36 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com CC: nickc at redhat dot com Target Milestone: --- [hjl@gnu-cfl-2 tmp]$ cat x.s .text .globl _start _start: .nop .section .unused1, "ax", %progbits .nop .section .gnu.note1, "o", %note, .unused1 .word 2 [hjl@gnu-cfl-2 tmp]$ gcc -c x.s [hjl@gnu-cfl-2 tmp]$ ld --gc-sections --print-gc-sections x.o ld: removing unused section '.unused1' in file 'x.o' ld: a.out: sh_link of section `.gnu.note1' points to discarded section `.unused1' of `x.o' ld: final link failed: bad value [hjl@gnu-cfl-2 tmp]$ -- You are receiving this mail because: You are on the CC list for the bug.