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