[PATCH] D135737: [LLD][ELF] restore behaviour of __real_foo being a weak reference to a lazy foo

ben via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 12 09:16:30 PDT 2022


bd1976llvm updated this revision to Diff 467171.
bd1976llvm added a comment.

Improve testing and add tests to show that symbol `foo` is considered referenced by LLD even if all references are redirected by `--wrap foo`. This property means that a `__wrap_foo` function that contains calls to `__real_foo` will not be called if `foo` is not included in the link.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135737/new/

https://reviews.llvm.org/D135737

Files:
  lld/ELF/Driver.cpp
  lld/test/ELF/wrap-extract-real.ll
  lld/test/ELF/wrap-extract-real.s
  lld/test/ELF/wrap-extract-unreferenced-orig.ll
  lld/test/ELF/wrap-extract-unreferenced-orig.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135737.467171.patch
Type: text/x-patch
Size: 4342 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221012/3e6ce993/attachment.bin>


More information about the llvm-commits mailing list