diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-08-31 21:04:25 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-08-31 21:04:25 +0000 |
| commit | 7caf48cc5bd762a1a5a363c73ec31184cf89e9bc (patch) | |
| tree | 90e76bf638ad0482073ab196b15530827241a8af | |
| parent | 37dcf6bf9754ea87045453f536c9ebdb0358e24c (diff) | |
| download | bcm5719-llvm-7caf48cc5bd762a1a5a363c73ec31184cf89e9bc.tar.gz bcm5719-llvm-7caf48cc5bd762a1a5a363c73ec31184cf89e9bc.zip | |
Initialize RelativeRel for AMDGPU.
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.
Differential Revision: https://reviews.llvm.org/D24100
llvm-svn: 280291
| -rw-r--r-- | lld/ELF/Target.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp index 3f97079d5f9..e40baeed14f 100644 --- a/lld/ELF/Target.cpp +++ b/lld/ELF/Target.cpp @@ -1457,6 +1457,7 @@ void AArch64TargetInfo::relaxTlsIeToLe(uint8_t *Loc, uint32_t Type, } AMDGPUTargetInfo::AMDGPUTargetInfo() { + RelativeRel = R_AMDGPU_REL64; GotRel = R_AMDGPU_ABS64; GotEntrySize = 8; } |

