[lld] r275373 - Attempt to unbreak msan bot.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 13 22:46:22 PDT 2016


Author: ruiu
Date: Thu Jul 14 00:46:22 2016
New Revision: 275373

URL: http://llvm.org/viewvc/llvm-project?rev=275373&view=rev
Log:
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.

Modified:
    lld/trunk/ELF/Target.cpp

Modified: lld/trunk/ELF/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.cpp?rev=275373&r1=275372&r2=275373&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Thu Jul 14 00:46:22 2016
@@ -1454,7 +1454,10 @@ void AArch64TargetInfo::relaxTlsIeToLe(u
   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 {




More information about the llvm-commits mailing list