[PATCH] D48502: Fix direct calls to __wrap_sym when it is relocated
Matthew Koontz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 22 11:47:14 PDT 2018
matthew.koontz created this revision.
matthew.koontz added a reviewer: ruiu.
Herald added subscribers: llvm-commits, arichardson, emaste.
Herald added a reviewer: espindola.
Before, direct calls to __wrap_sym would not map to valid PLT entries, so they would crash at runtime. This change maps such calls to the same PLT entry as calls to sym that are then wrapped.
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D48502
Files:
ELF/Relocations.cpp
ELF/SymbolTable.cpp
ELF/SymbolTable.h
ELF/Writer.cpp
test/ELF/wrap-plt.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48502.152529.patch
Type: text/x-patch
Size: 3255 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180622/44d51a1f/attachment.bin>
More information about the llvm-commits
mailing list