[llvm-bugs] [Bug 34506] New: lld -r corrupts comdat groups

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 6 08:25:40 PDT 2017


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

            Bug ID: 34506
           Summary: lld -r corrupts comdat groups
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: llvm-bugs at lists.llvm.org

given the .s:

        .section        .foo,"axG", at progbits,bar,comdat
        .section        .foo,"axG", at progbits,zed,comdat

If the corresponding .o is passed to lld -r, the result has

COMDAT group section [    2] `.group' [bar] contains 1 sections:               
                                                                               
                       [Index]    Name
   [    3]   .foo
COMDAT group section [    4] `.group' [zed] contains 1 sections:               
                                                                               
                       [Index]    Name
   [    3]   .foo

Note that the same section is in two groups

-- 
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/20170906/f5ead118/attachment.html>


More information about the llvm-bugs mailing list