summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-10-11 13:10:14 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-10-11 13:10:14 +0000
commite07d0c21bdab803fa3d752277e0f151f605fa6d4 (patch)
tree310d72e1e26b7233a6c28d58afe19c68bc9fd32b
parent37ed08d1054ed729324395ccefe0421bdc633078 (diff)
Always allocate GOT header entries on powerpc.
ok deraadt@
-rw-r--r--gnu/llvm/lld/ELF/SyntheticSections.cpp2
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) {