[llvm-bugs] [Bug 33511] New: Wrong relocation for an expression on ARM
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jun 19 09:08:07 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33511
Bug ID: 33511
Summary: Wrong relocation for an expression on ARM
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: MC
Assignee: unassignedbugs at nondot.org
Reporter: rafael.espindola at gmail.com
CC: llvm-bugs at lists.llvm.org
Given
.Lfoo:
.word _GLOBAL_OFFSET_TABLE_(GOT_PREL) - (.Lfoo+8)
.word _GLOBAL_OFFSET_TABLE_ - (.Lfoo+8)
gas produces
00000000 00000660 R_ARM_GOT_PREL 00000000 _GLOBAL_OFFSET_TABLE_
00000004 00000619 R_ARM_BASE_PREL 00000000 _GLOBAL_OFFSET_TABLE_
MC produces
00000000 00000160 R_ARM_GOT_PREL 00000000 _GLOBAL_OFFSET_TABLE_
00000004 00000103 R_ARM_REL32 00000000 _GLOBAL_OFFSET_TABLE_
--
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/20170619/25771ea5/attachment-0001.html>
More information about the llvm-bugs
mailing list