63 lines · plain
1a.out file refers to libfoo.a for a.o and b.o, which is what we want to accomplish for2this test case.3 4[16:17:44] johnny:/Volumes/data/lldb/svn/latest/test/functionalities/archives $ dsymutil -s a.out 5----------------------------------------------------------------------6Symbol table for: 'a.out' (x86_64)7----------------------------------------------------------------------8Index n_strx n_type n_sect n_desc n_value9======== -------- ------------------ ------ ------ ----------------10[ 0] 00000002 64 (N_SO ) 00 0000 0000000000000000 '/Volumes/data/lldb/svn/latest/test/functionalities/archives/'11[ 1] 0000003f 64 (N_SO ) 00 0000 0000000000000000 'main.c'12[ 2] 00000046 66 (N_OSO ) 03 0001 000000004f0f780c '/Volumes/data/lldb/svn/latest/test/functionalities/archives/main.o'13[ 3] 00000001 2e (N_BNSYM ) 01 0000 0000000100000d7014[ 4] 00000089 24 (N_FUN ) 01 0000 0000000100000d70 '_main'15[ 5] 00000001 24 (N_FUN ) 00 0000 000000000000005d16[ 6] 00000001 4e (N_ENSYM ) 01 0000 000000000000005d17[ 7] 00000001 64 (N_SO ) 01 0000 000000000000000018[ 8] 00000002 64 (N_SO ) 00 0000 0000000000000000 '/Volumes/data/lldb/svn/latest/test/functionalities/archives/'19[ 9] 0000008f 64 (N_SO ) 00 0000 0000000000000000 'a.c'20[ 10] 00000093 66 (N_OSO ) 03 0001 000000004f0f780c '/Volumes/data/lldb/svn/latest/test/functionalities/archives/libfoo.a(a.o)'21[ 11] 00000001 2e (N_BNSYM ) 01 0000 0000000100000dd022[ 12] 000000dd 24 (N_FUN ) 01 0000 0000000100000dd0 '_a'23[ 13] 00000001 24 (N_FUN ) 00 0000 000000000000002024[ 14] 00000001 4e (N_ENSYM ) 01 0000 000000000000002025[ 15] 00000001 2e (N_BNSYM ) 01 0000 0000000100000df026[ 16] 000000e0 24 (N_FUN ) 01 0000 0000000100000df0 '_aa'27[ 17] 00000001 24 (N_FUN ) 00 0000 000000000000001828[ 18] 00000001 4e (N_ENSYM ) 01 0000 000000000000001829[ 19] 000000e4 20 (N_GSYM ) 00 0000 0000000000000000 '___a_global'30[ 20] 00000001 64 (N_SO ) 01 0000 000000000000000031[ 21] 00000002 64 (N_SO ) 00 0000 0000000000000000 '/Volumes/data/lldb/svn/latest/test/functionalities/archives/'32[ 22] 000000f0 64 (N_SO ) 00 0000 0000000000000000 'b.c'33[ 23] 000000f4 66 (N_OSO ) 03 0001 000000004f0f780c '/Volumes/data/lldb/svn/latest/test/functionalities/archives/libfoo.a(b.o)'34[ 24] 00000001 2e (N_BNSYM ) 01 0000 0000000100000e1035[ 25] 0000013e 24 (N_FUN ) 01 0000 0000000100000e10 '_b'36[ 26] 00000001 24 (N_FUN ) 00 0000 000000000000002037[ 27] 00000001 4e (N_ENSYM ) 01 0000 000000000000002038[ 28] 00000001 2e (N_BNSYM ) 01 0000 0000000100000e3039[ 29] 00000141 24 (N_FUN ) 01 0000 0000000100000e30 '_bb'40[ 30] 00000001 24 (N_FUN ) 00 0000 000000000000001841[ 31] 00000001 4e (N_ENSYM ) 01 0000 000000000000001842[ 32] 00000145 26 (N_STSYM ) 0a 0000 000000010000104c '___b_global'43[ 33] 00000001 64 (N_SO ) 01 0000 000000000000000044[ 34] 00000151 0e ( SECT ) 07 0000 0000000100001000 '_pvars'45[ 35] 00000158 0e ( SECT ) 0a 0000 000000010000104c '___b_global'46[ 36] 00000164 0f ( SECT EXT) 0b 0000 0000000100001050 '_NXArgc'47[ 37] 0000016c 0f ( SECT EXT) 0b 0000 0000000100001058 '_NXArgv'48[ 38] 00000174 0f ( SECT EXT) 0a 0000 0000000100001048 '___a_global'49[ 39] 00000180 0f ( SECT EXT) 0b 0000 0000000100001068 '___progname'50[ 40] 0000018c 03 ( ABS EXT) 01 0010 0000000100000000 '__mh_execute_header'51[ 41] 000001a0 0f ( SECT EXT) 01 0000 0000000100000dd0 '_a'52[ 42] 000001a3 0f ( SECT EXT) 01 0000 0000000100000df0 '_aa'53[ 43] 000001a7 0f ( SECT EXT) 01 0000 0000000100000e10 '_b'54[ 44] 000001aa 0f ( SECT EXT) 01 0000 0000000100000e30 '_bb'55[ 45] 000001ae 0f ( SECT EXT) 0b 0000 0000000100001060 '_environ'56[ 46] 000001b7 0f ( SECT EXT) 01 0000 0000000100000d70 '_main'57[ 47] 000001bd 0f ( SECT EXT) 01 0000 0000000100000d30 'start'58[ 48] 000001c3 01 ( UNDF EXT) 00 0100 0000000000000000 '_exit'59[ 49] 000001c9 01 ( UNDF EXT) 00 0100 0000000000000000 '_printf'60[ 50] 000001d1 01 ( UNDF EXT) 00 0100 0000000000000000 'dyld_stub_binder'61 62 63