[PATCH] D24100: Initialize RelativeRel for AMDGPU.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 31 13:47:07 PDT 2016

ruiu created this revision.
ruiu added a reviewer: krasin.
ruiu added a subscriber: llvm-commits.
Herald added a reviewer: tstellarAMD.
Herald added a subscriber: wdng.

Target->RelativeRel is used for all platforms, but AMDGPU did
not send that member.

Fixes bug 30227 - RelativeRel is used, but not initialized for AMDGPU.



Index: ELF/Target.cpp
--- ELF/Target.cpp
+++ ELF/Target.cpp
@@ -1457,6 +1457,7 @@
 AMDGPUTargetInfo::AMDGPUTargetInfo() {
+  RelativeRel = R_AMDGPU_REL64;
   GotRel = R_AMDGPU_ABS64;
   GotEntrySize = 8;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24100.69899.patch
Type: text/x-patch
Size: 280 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160831/8844d173/attachment.bin>

More information about the llvm-commits mailing list