diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2018-02-06 22:59:24 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2018-02-06 22:59:24 +0000 |
| commit | 339dbb8af2a7372bb79cdb8f5a9d87138b50e3da (patch) | |
| tree | 44f58b80668a19d2e502367d26cb9002df46ff67 /lld/ELF/Writer.cpp | |
| parent | 637aafc4516594b058453f34c2a4f0496fd80d41 (diff) | |
| download | bcm5719-llvm-339dbb8af2a7372bb79cdb8f5a9d87138b50e3da.tar.gz bcm5719-llvm-339dbb8af2a7372bb79cdb8f5a9d87138b50e3da.zip | |
Convert a use of Config->Static.
In lld this was the only use of Config->Static where it meant anything
else other than "use .a instead of .so".
If a program turns out to not use any dynamic libraries, we should
produce the same result with and without -static.
llvm-svn: 324421
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 3063dd81a1f..eddf1741436 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -837,7 +837,7 @@ void PhdrEntry::add(OutputSection *Sec) { // need these symbols, since IRELATIVE relocs are resolved through GOT // and PLT. For details, see http://www.airs.com/blog/archives/403. template <class ELFT> void Writer<ELFT>::addRelIpltSymbols() { - if (!Config->Static) + if (needsInterpSection()) return; StringRef S = Config->IsRela ? "__rela_iplt_start" : "__rel_iplt_start"; addOptionalRegular(S, InX::RelaIplt, 0, STV_HIDDEN, STB_WEAK); |

