[PATCH] D118756: [ELF] Avoid wrapping unreferenced lazy symbols

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 3 22:36:11 PST 2022


MaskRay accepted this revision.
MaskRay added inline comments.


================
Comment at: lld/test/ELF/wrap-lazy.test:23
+# RUN: llvm-readelf -s %t7.so | FileCheck --check-prefix=LAZY-REF %s
+# RUN: ld.lld -shared -o %tweakref.so %tweakref.o
+# RUN: ld.lld -shared -o %t8.so %tdummy.o %tweakref.so --start-lib %tlazy.o --wrap lazy
----------------
If a produced shared object is used as input to another link, set soname to a fixed value so that the subsequent link will not get DT_NEEDED of varying lengths.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D118756



More information about the llvm-commits mailing list