[PATCH] D50657: Add R_HEX_32 relocation support
Sid Manning via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 14 06:53:22 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL339677: [ELF][HEXAGON] Add R_HEX_32 support (authored by sidneym, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D50657?vs=160421&id=160573#toc
Repository:
rL LLVM
https://reviews.llvm.org/D50657
Files:
lld/trunk/ELF/Arch/Hexagon.cpp
lld/trunk/test/ELF/hexagon.s
Index: lld/trunk/ELF/Arch/Hexagon.cpp
===================================================================
--- lld/trunk/ELF/Arch/Hexagon.cpp
+++ lld/trunk/ELF/Arch/Hexagon.cpp
@@ -128,6 +128,9 @@
case R_HEX_12_X:
or32le(Loc, applyMask(0x000007e0, Val));
break;
+ case R_HEX_32:
+ or32le(Loc, applyMask(0xffffffff, Val));
+ break;
case R_HEX_32_6_X:
or32le(Loc, applyMask(0x0fff3fff, Val >> 6));
break;
Index: lld/trunk/test/ELF/hexagon.s
===================================================================
--- lld/trunk/test/ELF/hexagon.s
+++ lld/trunk/test/ELF/hexagon.s
@@ -172,3 +172,8 @@
# The rest:
r1:0=combine(r2,##_start);
# CHECK: 7302e000 r1:0 = combine(r2,##69632) }
+
+# R_HEX_32:
+r_hex_32:
+.word _start
+# CHECK: 00011000
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50657.160573.patch
Type: text/x-patch
Size: 776 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180814/8f0b80c9/attachment.bin>
More information about the llvm-commits
mailing list