llvm-svn: 279415
This commit is contained in:
Rui Ueyama 2016-08-22 04:55:41 +00:00
parent 464daadc3d
commit 189b871a62
1 changed files with 2 additions and 1 deletions

View File

@ -524,11 +524,12 @@ static Symbol *addOptionalSynthetic(StringRef Name,
template <class ELFT>
static void addSynthetic(StringRef Name, OutputSectionBase<ELFT> *Sec,
typename ELFT::uint Val) {
typename ELFT::uint Val) {
SymbolBody *S = Symtab<ELFT>::X->find(Name);
if (!S || S->isUndefined() || S->isShared())
Symtab<ELFT>::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