diff options
Diffstat (limited to 'lld/ELF/Writer.cpp')
-rw-r--r-- | lld/ELF/Writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 31cf3198e72..d990990a266 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1163,7 +1163,7 @@ template <class ELFT> bool Writer<ELFT>::needsGot() { // We add the .got section to the result for dynamic MIPS target because // its address and properties are mentioned in the .dynamic section. - if (Config->EMachine == EM_MIPS && isOutputDynamic()) + if (Config->EMachine == EM_MIPS) return true; // If we have a relocation that is relative to GOT (such as GOTOFFREL), |