From 0fad6ea551b423e22e3ff798f2fa715a3e8bb0ab Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 14 Jul 2016 05:46:22 +0000 Subject: [PATCH] Attempt to unbreak msan bot. r275301 made .got section be aligned on Target->GotEntrySize, so GotEntrySize must have been initialized. We didn't initialize it for AMDGPU. llvm-svn: 275373 --- lld/ELF/Target.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp index 6908d8f..437a500 100644 --- a/lld/ELF/Target.cpp +++ b/lld/ELF/Target.cpp @@ -1454,7 +1454,10 @@ void AArch64TargetInfo::relaxTlsIeToLe(uint8_t *Loc, uint32_t Type, llvm_unreachable("invalid relocation for TLS IE to LE relaxation"); } -AMDGPUTargetInfo::AMDGPUTargetInfo() { GotRel = R_AMDGPU_ABS64; } +AMDGPUTargetInfo::AMDGPUTargetInfo() { + GotRel = R_AMDGPU_ABS64; + GotEntrySize = 8; +} void AMDGPUTargetInfo::relocateOne(uint8_t *Loc, uint32_t Type, uint64_t Val) const { -- 2.7.4