[llvm-bugs] [Bug 46783] New: --print-gc-sections: print group signatures

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 20 11:05:47 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46783

            Bug ID: 46783
           Summary: --print-gc-sections: print group signatures
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: i at maskray.me
                CC: llvm-bugs at lists.llvm.org, smithp352 at googlemail.com

Petr Hosek reported that GNU ld has a nicer information. For example:

% cat a.s
.section .text.foo,"aG", at progbits,foo,comdat
.byte 0
.section __sancov_cntrs,"aG", at progbits,foo,comdat
.byte 0

% ld.lld --gc-sections --print-gc-sections -e 0 a.o -o a
removing unused section a.o:(.text)
removing unused section a.o:(.text.foo)
removing unused section a.o:(__sancov_cntrs)

### Ggroup signature in the output.
% ld.bfd --gc-sections --print-gc-sections -e 0 a.o -o a
ld.bfd: removing unused section '.group' in file 'a.o'
ld.bfd: removing unused section '.text.foo[foo]' in file 'a.o'
ld.bfd: removing unused section '__sancov_cntrs[foo]' in file 'a.o'

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200720/efb0a95a/attachment.html>


More information about the llvm-bugs mailing list