summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2020-10-11 13:10:13 +0000
committerkettenis <kettenis@openbsd.org>2020-10-11 13:10:13 +0000
commit0e79c399c82c7df81de41230ed92dce005a144a4 (patch)
tree4caa429382f0cd30480f69363c984c384fee6a09 /gnu
parentSSL3_ENC_METHOD is just a flag word; merge it into SSL_METHOD_INTERNAL (diff)
downloadwireguard-openbsd-0e79c399c82c7df81de41230ed92dce005a144a4.tar.xz
wireguard-openbsd-0e79c399c82c7df81de41230ed92dce005a144a4.zip
Always allocate GOT header entries on powerpc.
ok deraadt@
Diffstat (limited to 'gnu')
-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) {