Attempt to unbreak msan bot.
authorRui Ueyama <ruiu@google.com>
Thu, 14 Jul 2016 05:46:22 +0000 (05:46 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 14 Jul 2016 05:46:22 +0000 (05:46 +0000)
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

index 6908d8f..437a500 100644 (file)
@@ -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 {