bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/26681] New: The section flag 'o' doesn't work on NOTE section


From: hjl.tools at gmail dot com
Subject: [Bug ld/26681] New: The section flag 'o' doesn't work on NOTE section
Date: Wed, 30 Sep 2020 13:17:12 +0000

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.


reply via email to

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