summaryrefslogtreecommitdiff
path: root/gnu/llvm/lld/ELF/SyntheticSections.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/llvm/lld/ELF/SyntheticSections.cpp')
-rw-r--r--gnu/llvm/lld/ELF/SyntheticSections.cpp2
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;
}