diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index b39897f8200a..3b20bbe49b16 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -524,11 +524,12 @@ static Symbol *addOptionalSynthetic(StringRef Name, template static void addSynthetic(StringRef Name, OutputSectionBase *Sec, - typename ELFT::uint Val) { + typename ELFT::uint Val) { SymbolBody *S = Symtab::X->find(Name); if (!S || S->isUndefined() || S->isShared()) Symtab::X->addSynthetic(Name, Sec, Val, STV_HIDDEN); } + // The beginning and the ending of .rel[a].plt section are marked // with __rel[a]_iplt_{start,end} symbols if it is a statically linked // executable. The runtime needs these symbols in order to resolve