[lld] [lld][ELF] Handle archive special casing in Input Sections (PR #119293)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 10 18:25:45 PST 2025
================
@@ -72,6 +73,12 @@
# RUN: ld.lld -o 11 -T 11.t --whole-archive 'lib1().a' dir2/lib2.a
# RUN: llvm-objdump -s 11 | FileCheck --check-prefix=SECONDFIRST %s
+## Verify that matching files excluded from an archive doesn't match files within one
+# RUN: echo 'SECTIONS{.foo :{ KEEP(:*x.o(.foo)) KEEP(*y.o(.foo)) KEEP(*x.o(.foo)) }}' > 12.t
+# RUN: ld.lld -o 12 -T 12.t --whole-archive \
----------------
amosher-nvidia wrote:
Sorry about the delay, missed this comment somehow. Just pushed an updated commit with this changed and freshly re-based onto main. Thanks for taking the time to review (:
https://github.com/llvm/llvm-project/pull/119293
More information about the llvm-commits
mailing list