bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/11143] New: Static linking with gc-sections deletes note section


From: hjl dot tools at gmail dot com
Subject: [Bug ld/11143] New: Static linking with gc-sections deletes note section
Date: 6 Jan 2010 17:04:02 -0000

address@hidden 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 */
address@hidden 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'
address@hidden 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]