diff options
author | kettenis <kettenis@openbsd.org> | 2020-11-01 17:42:45 +0000 |
---|---|---|
committer | kettenis <kettenis@openbsd.org> | 2020-11-01 17:42:45 +0000 |
commit | bbd452217db6c301b28c9831c7f829e4bc321231 (patch) | |
tree | 16f8d249e50801674afb4da931cffc48817563c4 /gnu | |
parent | Add 'dynamic' keyword to configure flows to dynamically assigned addresses. (diff) | |
download | wireguard-openbsd-bbd452217db6c301b28c9831c7f829e4bc321231.tar.xz wireguard-openbsd-bbd452217db6c301b28c9831c7f829e4bc321231.zip |
Do not reserve PowerPC GOT header entries when creating a relocatable
object file.
ok guenther@
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/llvm/lld/ELF/SyntheticSections.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/llvm/lld/ELF/SyntheticSections.cpp b/gnu/llvm/lld/ELF/SyntheticSections.cpp index 83a232850be..e28eeeb3ba3 100644 --- a/gnu/llvm/lld/ELF/SyntheticSections.cpp +++ b/gnu/llvm/lld/ELF/SyntheticSections.cpp @@ -604,7 +604,7 @@ GotSection::GotSection() // ElfSym::globalOffsetTable. if (ElfSym::globalOffsetTable && !target->gotBaseSymInGotPlt) numEntries += target->gotHeaderEntriesNum; - else if (config->emachine == EM_PPC) + else if (config->emachine == EM_PPC && !config->relocatable) numEntries += target->gotHeaderEntriesNum; } |