[llvm-bugs] [Bug 31252] New: relocations to local symbols not handled with -r
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Dec 3 22:07:58 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=31252
Bug ID: 31252
Summary: relocations to local symbols not handled with -r
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
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 an input with
----------------------
leaq .Lstr(%rip), %rdi
.section .rodata.str1.1,"aMS", at progbits,1
.Lstr:
.asciz "abc\n"
---------------------
lld -r will produce
000000000003 000000000002 R_X86_64_PC32 -4
while bfd produces
000000000003 000400000002 R_X86_64_PC32 0000000000000000 .Lstr - 4
note that lld lost the symbol.
--
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/20161204/fb3e4e6d/attachment-0001.html>
More information about the llvm-bugs
mailing list