summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/Writer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 5a74403262a..1e5e3a22b13 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -252,9 +252,9 @@ template <class ELFT> void Writer<ELFT>::createSyntheticSections() {
if (Config->GdbIndex)
Out<ELFT>::GdbIndex = make<GdbIndexSection<ELFT>>();
- StringRef S = Config->Rela ? ".rela.plt" : ".rel.plt";
Out<ELFT>::GotPlt = make<GotPltSection<ELFT>>();
- Out<ELFT>::RelaPlt = make<RelocationSection<ELFT>>(S, false /*Sort*/);
+ Out<ELFT>::RelaPlt = make<RelocationSection<ELFT>>(
+ Config->Rela ? ".rela.plt" : ".rel.plt", false /*Sort*/);
if (Config->Strip != StripPolicy::All) {
Out<ELFT>::StrTab = make<StringTableSection<ELFT>>(".strtab", false);
Out<ELFT>::SymTab = make<SymbolTableSection<ELFT>>(*Out<ELFT>::StrTab);
OpenPOWER on IntegriCloud