[llvm] [llvm-symbolizer] Recognize AIX big archive (PR #150401)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 12 00:58:02 PST 2025
================
@@ -0,0 +1,62 @@
+## Test archive member recognition by name (GNU archive format).
+
+# RUN: rm -rf %t.dir && mkdir %t.dir && cd %t.dir
+
+# RUN: yaml2obj -DSYMBOL=foo1 %s -o 1.o
+# RUN: yaml2obj -DSYMBOL=foo2 %s -o 2.o
+
+# RUN: llvm-ar --format=gnu crv archive.a 1.o 2.o
+
+## Test symbolization by member name with architecture via --default-arch flag.
+# RUN: llvm-symbolizer --default-arch=ppc64 --obj="archive.a(1.o)" 0x0 | FileCheck %s --check-prefix=CHECK-1
----------------
jh7370 wrote:
I'd like to see testing where we have two objects with the same name but different architectures, similar to the big archive case. You can create such an archive for the GNU format using `q` instead of `r` in the llvm-ar invocation. You should test it both ways around, where the archive member you want is first and where it is second (same as the big archive test). I'd also like to see what happens when there is no member with the specified architecture (but there is one with the right name).
https://github.com/llvm/llvm-project/pull/150401
More information about the llvm-commits
mailing list