diff options
Diffstat (limited to 'lld/ELF/Writer.cpp')
-rw-r--r-- | lld/ELF/Writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 52741b1cf46..ab844d368e1 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -335,7 +335,7 @@ void Writer<ELFT>::scanRelocs( if (auto *B = dyn_cast_or_null<SharedSymbol<ELFT>>(Body)) { if (B->needsCopy()) continue; - if (Target->needsCopyRel(Type, *B)) { + if (Target->needsCopyRel<ELFT>(Type, *B)) { B->NeedsCopyOrPltAddr = true; Out<ELFT>::RelaDyn->addReloc( {Target->CopyRel, DynamicReloc<ELFT>::Off_Bss, B}); |