[llvm-bugs] [Bug 31986] New: With -emit-relocs we have to combine multiple reloc sections

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 16 15:25:54 PST 2017


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

            Bug ID: 31986
           Summary: With -emit-relocs we have to combine multiple reloc
                    sections
           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

        .section        .data.foo,"aw",%progbits
        .quad zed
        .section        .data.bar,"aw",%progbits
        .quad zed

We produce

  [ 6] .data             PROGBITS        0000000000001000 001000 000010 00  WA 
0   0  1
  [ 8] .rela.data.foo    RELA            0000000000000000 002090 000018 18    
11   6  8
  [ 9] .rela.data.bar    RELA            0000000000000000 0020a8 000018 18    
11   6  8

While that is technically valid, most tools don't support that. In particular,
gnu strip fails on a file if two relocation sections point to the same section.

-- 
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/20170216/8d46e859/attachment.html>


More information about the llvm-bugs mailing list