[llvm-bugs] [Bug 30803] New: lld too aggressive at relaxing got access

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 26 15:51:27 PDT 2016


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

            Bug ID: 30803
           Summary: lld too aggressive at relaxing got access
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Given

        movq    bar at GOTPCREL(%rip), %rax
        .data
        .global bar
        .hidden bar
        bar = 42

lld will try to optimize the R_X86_64_REX_GOTPCRELX. The problem is that the
symbol is absolute, so we end up with a relative relocation trying to point to
an absolute symbol, which fails.

-- 
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/20161026/dc4f014f/attachment.html>


More information about the llvm-bugs mailing list