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 6c02c2c3ae0..1994e24a799 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -683,8 +683,8 @@ void Writer<ELFT>::scanRelocs(InputSectionBase<ELFT> &C, ArrayRef<RelTy> Rels) {
continue;
}
- if (Target->needsThunk(Type, File, Body)) {
- C.Relocations.push_back({R_THUNK, Type, Offset, Addend, &Body});
+ if (Expr == R_THUNK) {
+ C.Relocations.push_back({Expr, Type, Offset, Addend, &Body});
continue;
}
OpenPOWER on IntegriCloud