diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-01-15 17:58:43 +0000 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-01-18 14:51:14 -0300 |
commit | 2f92386e721acd7badac06b67229537c4f0adfad (patch) | |
tree | 909d49fa3583b9aed3de05330ad45218f11a4bcd /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | 50ae6a3ac9bdf640ecc69fe6540b08a8b4355398 (diff) | |
download | llvm-2f92386e721acd7badac06b67229537c4f0adfad.zip llvm-2f92386e721acd7badac06b67229537c4f0adfad.tar.gz llvm-2f92386e721acd7badac06b67229537c4f0adfad.tar.bz2 |
[LLD][ELF][AArch64] Set _GLOBAL_OFFSET_TABLE_ at the start of .got
The commit 18aa0be36ed9 changed the default GotBaseSymInGotPlt to true
for AArch64. This is different than binutils, where
_GLOBAL_OFFSET_TABLE_ points at the start or .got.
It seems to not intefere with current relocations used by LLVM. However
as indicated by PR#40357 [1] gcc generates R_AARCH64_LD64_GOTPAGE_LO15
for -pie (in fact it also generated the relocation for -fpic).
This change is requires to correctly handle R_AARCH64_LD64_GOTPAGE_LO15
by lld from objects generated by gcc.
[1] https://bugs.llvm.org/show_bug.cgi?id=40357
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions