diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-10-11 13:10:14 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-10-11 13:10:14 +0000 |
commit | e07d0c21bdab803fa3d752277e0f151f605fa6d4 (patch) | |
tree | 310d72e1e26b7233a6c28d58afe19c68bc9fd32b | |
parent | 37ed08d1054ed729324395ccefe0421bdc633078 (diff) |
Always allocate GOT header entries on powerpc.
ok deraadt@
-rw-r--r-- | gnu/llvm/lld/ELF/SyntheticSections.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/llvm/lld/ELF/SyntheticSections.cpp b/gnu/llvm/lld/ELF/SyntheticSections.cpp index ea6eab4b47a..83a232850be 100644 --- a/gnu/llvm/lld/ELF/SyntheticSections.cpp +++ b/gnu/llvm/lld/ELF/SyntheticSections.cpp @@ -604,6 +604,8 @@ GotSection::GotSection() // ElfSym::globalOffsetTable. if (ElfSym::globalOffsetTable && !target->gotBaseSymInGotPlt) numEntries += target->gotHeaderEntriesNum; + else if (config->emachine == EM_PPC) + numEntries += target->gotHeaderEntriesNum; } void GotSection::addEntry(Symbol &sym) { |