[lld] r269983 - Simplify, NFC.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed May 18 14:05:18 PDT 2016
Author: rafael
Date: Wed May 18 16:05:18 2016
New Revision: 269983
URL: http://llvm.org/viewvc/llvm-project?rev=269983&view=rev
Log:
Simplify, NFC.
Modified:
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=269983&r1=269982&r2=269983&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Wed May 18 16:05:18 2016
@@ -728,8 +728,8 @@ void Writer<ELFT>::scanRelocs(InputSecti
Out<ELFT>::Plt->addEntry(Body);
uint32_t Rel;
- if (Body.isGnuIFunc())
- Rel = Preemptible ? Target->PltRel : Target->IRelativeRel;
+ if (Body.isGnuIFunc() && !Preemptible)
+ Rel = Target->IRelativeRel;
else
Rel = Target->PltRel;
More information about the llvm-commits
mailing list