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: unassignedb...@nondot.org Reporter: rafael.espind...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified Given movq bar@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs