1 ## Show that llvm-nm prints the symbols of all ELF members of an archive.
3 # RUN: yaml2obj %s --docnum=1 -o %t1.o
4 # RUN: yaml2obj %s --docnum=2 -o %t2.o
7 # RUN: llvm-ar rc %t.symtab %t1.o %t2.o
8 # RUN: llvm-nm %t.symtab | FileCheck %s --match-full-lines
10 # RUN: rm -f %t.nosymtab
11 # RUN: llvm-ar rcS %t.nosymtab %t1.o %t2.o
12 # RUN: llvm-nm %t.nosymtab | FileCheck %s --match-full-lines
15 # CHECK-NEXT: 00000002 D global_data_symbol
16 # CHECK-NEXT: 00000000 T global_function_symbol
18 # CHECK-NEXT: {{.*}}2.o:
19 # CHECK-NEXT: 00000001 D another_data_symbol
30 Flags: [SHF_ALLOC, SHF_EXECINSTR]
33 Flags: [SHF_ALLOC, SHF_WRITE]
35 - Name: global_function_symbol
39 - Name: global_data_symbol
53 Flags: [SHF_ALLOC, SHF_WRITE]
55 - Name: another_data_symbol