[...@gnu-6 pr11133]$ cat abi-note.S .text .global _start _start: .long 1
.section ".note.ABI-tag", "a" .p2align 2 .long 1f - 0f /* name length */ .long 3f - 2f /* data length */ .long 1 /* note type */ 0: .asciz "GNU" /* vendor name */ 1: .p2align 2 2: .long 1 .long 2 3: .p2align 2 /* pad out section */ [...@gnu-6 pr11133]$ make LD=ld abi-note cc -c -o abi-note.o abi-note.S ld -e _start --print-gc-sections --gc-sections -o abi-note abi-note.o ld: Removing unused section '.note.ABI-tag' in file 'abi-note.o' [...@gnu-6 pr11133]$ -- Summary: Static linking with gc-sections deletes note section Product: binutils Version: 2.21 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: hjl dot tools at gmail dot com CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=11143 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils