xref: /llvm-project/llvm/test/tools/dsymutil/dump-symtab.test (revision 0ed8194256c6c96875ed9dd102d15ee8a9260fec)
1RUN: dsymutil -s %p/Inputs/fat-test.dylib | FileCheck -check-prefixes=ALL,I386 %s
2RUN: dsymutil -arch i386 -s %p/Inputs/fat-test.dylib | FileCheck -check-prefixes=I386,ONE %s
3
4RUN: dsymutil --linker parallel -s %p/Inputs/fat-test.dylib | FileCheck -check-prefixes=ALL,I386 %s
5RUN: dsymutil --linker parallel -arch i386 -s %p/Inputs/fat-test.dylib | FileCheck -check-prefixes=I386,ONE %s
6
7
8ALL:  ----------------------------------------------------------------------
9ALL-NEXT:  Symbol table for: '{{.*}}fat-test.dylib' (x86_64)
10ALL-NEXT:  ----------------------------------------------------------------------
11ALL-NEXT:  Index    n_strx   n_type             n_sect n_desc n_value
12ALL-NEXT:  ======== -------- ------------------ ------ ------ ----------------
13ALL-NEXT:  [     0] 00000002 64 (N_SO         ) 00     0000   0000000000000000 '/Inputs/'
14ALL-NEXT:  [     1] 0000000b 64 (N_SO         ) 00     0000   0000000000000000 'fat-test.c'
15ALL-NEXT:  [     2] 00000016 66 (N_OSO        ) 03     0001   0000000055b1d0b9 '/Inputs/fat-test.o'
16ALL-NEXT:  [     3] 00000029 20 (N_GSYM       ) 00     0000   0000000000000000 '_x86_64_var'
17ALL-NEXT:  [     4] 00000001 64 (N_SO         ) 01     0000   0000000000000000
18ALL-NEXT:  [     5] 00000035 0f (     SECT EXT) 02     0000   0000000000001000 '_x86_64_var'
19ALL-NEXT:  [     6] 00000041 01 (     UNDF EXT) 00     0100   0000000000000000 'dyld_stub_binder'
20
21I386: ----------------------------------------------------------------------
22I386-NEXT: Symbol table for: '{{.*}}fat-test.dylib' (i386)
23I386-NEXT: ----------------------------------------------------------------------
24I386-NEXT: Index    n_strx   n_type             n_sect n_desc n_value
25I386-NEXT: ======== -------- ------------------ ------ ------ ----------------
26I386-NEXT: [     0] 00000002 64 (N_SO         ) 00     0000   0000000000000000 '/Inputs/'
27I386-NEXT: [     1] 0000000b 64 (N_SO         ) 00     0000   0000000000000000 'fat-test.c'
28I386-NEXT: [     2] 00000016 66 (N_OSO        ) 03     0001   0000000055b1d0b9 '/Inputs/fat-test.o'
29I386-NEXT: [     3] 00000029 20 (N_GSYM       ) 00     0000   0000000000000000 '_i386_var'
30I386-NEXT: [     4] 00000001 64 (N_SO         ) 01     0000   0000000000000000
31I386-NEXT: [     5] 00000033 0f (     SECT EXT) 02     0000   0000000000001000 '_i386_var'
32I386-NEXT: [     6] 0000003d 01 (     UNDF EXT) 00     0100   0000000000000000 'dyld_stub_binder'
33
34ONE-NOT: Symbol table
35
36ALL:  ----------------------------------------------------------------------
37ALL-NEXT:  Symbol table for: '{{.*}}fat-test.dylib' (x86_64h)
38ALL-NEXT:  ----------------------------------------------------------------------
39ALL-NEXT:  Index    n_strx   n_type             n_sect n_desc n_value
40ALL-NEXT:  ======== -------- ------------------ ------ ------ ----------------
41ALL-NEXT:  [     0] 00000002 64 (N_SO         ) 00     0000   0000000000000000 '/Inputs/'
42ALL-NEXT:  [     1] 0000000b 64 (N_SO         ) 00     0000   0000000000000000 'fat-test.c'
43ALL-NEXT:  [     2] 00000016 66 (N_OSO        ) 08     0001   0000000055b1d0b9 '/Inputs/fat-test.o'
44ALL-NEXT:  [     3] 00000029 20 (N_GSYM       ) 00     0000   0000000000000000 '_x86_64h_var'
45ALL-NEXT:  [     4] 00000001 64 (N_SO         ) 01     0000   0000000000000000
46ALL-NEXT:  [     5] 00000036 0f (     SECT EXT) 02     0000   0000000000001000 '_x86_64h_var'
47ALL-NEXT:  [     6] 00000043 01 (     UNDF EXT) 00     0100   0000000000000000 'dyld_stub_binder'
48