diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-11-01 17:42:46 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-11-01 17:42:46 +0000 |
commit | 2f1f1bc55d544fa357617bbf02337dfcef30bb96 (patch) | |
tree | 09566a1fd70a481b9761571f01b04dbb376cc80f /gnu/llvm/lld | |
parent | 4ca065f2634f9127bbdfecd3485ea4f6378e9d41 (diff) |
Do not reserve PowerPC GOT header entries when creating a relocatable
object file.
ok guenther@
Diffstat (limited to 'gnu/llvm/lld')
-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; } |