[llvm] big archive recognition by the llvm-symbolizer (PR #150401)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 1 00:04:55 PDT 2025
================
@@ -0,0 +1,25 @@
+// Test archive member recognition by name (ELF format)
+// UNSUPPORTED: target={{.*}}-aix{{.*}}
+
+// Generate object files from YAML
+// RUN: yaml2obj -o %t-1.o %S/Inputs/big-archive-elf-1.yaml
+// RUN: yaml2obj -o %t-2.o %S/Inputs/big-archive-elf-2.yaml
+
+// Create archive with differently named members
+// RUN: rm -f %t.a
+// RUN: llvm-ar crv %t.a %t-1.o %t-2.o
+
+// Verify archive contents
+// RUN: llvm-ar tv %t.a | FileCheck %s --check-prefix=CHECK-ARCHIVE
+// CHECK-ARCHIVE: {{.*}}-1.o
+// CHECK-ARCHIVE: {{.*}}-2.o
+
+// Test symbolization by member name (using just base names)
----------------
midhuncodes7 wrote:
used $(basename %t.o) to get the basename
https://github.com/llvm/llvm-project/pull/150401
More information about the llvm-commits
mailing list