Index: lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp =================================================================== --- lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp +++ lib/ReaderWriter/ELF/AArch64/AArch64RelocationPass.cpp @@ -432,7 +432,7 @@ pa->addReferenceELF_AArch64(R_AARCH64_NONE, 12, getPLT0(), 0); // Set the starting address of the got entry to the first instruction in // the plt0 entry. - ga->addReferenceELF_AArch64(R_AARCH64_ABS32, 0, pa, 0); + ga->addReferenceELF_AArch64(R_AARCH64_ABS32, 0, getPLT0(), 0); #ifndef NDEBUG ga->_name = "__got_"; ga->_name += a->name();