[llvm-bugs] [Bug 44397] New: MC produces a R_X86_64_PC32, gas produces a R_X86_64_PLT32
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Dec 28 16:47:33 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=44397
Bug ID: 44397
Summary: MC produces a R_X86_64_PC32, gas produces a
R_X86_64_PLT32
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: MC
Assignee: unassignedbugs at nondot.org
Reporter: rafael at espindo.la
CC: grimar at accesssoftek.com, llvm-bugs at lists.llvm.org,
ruiu at google.com
Given
jne foo
.long foo - .
MC produces two R_X86_64_PC32 relocations. The gnu assembler produces a
R_X86_64_PLT32 for the first one and a R_X86_64_PC32 to the second one.
The advantage of producing a R_X86_64_PLT32 for branches is that the linker
doesn't have to enforce pointer equality in the same way it has to do for
R_X86_64_PC32.
The corresponding bug in the gnu assembler is
https://sourceware.org/bugzilla/show_bug.cgi?id=22791
--
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/20191229/71d109a9/attachment.html>
More information about the llvm-bugs
mailing list