Skip to content

Instantly share code, notes, and snippets.

@c-urly
Last active March 7, 2020 12:26
Show Gist options
  • Save c-urly/23cae3609246ed41f615d2f48f017f82 to your computer and use it in GitHub Desktop.
Save c-urly/23cae3609246ed41f615d2f48f017f82 to your computer and use it in GitHub Desktop.
Objdump stabs format output
# objdump --stabs hello.o
hello.o: file format elf64-x86-64
Contents of .stab section:
Symnum n_type n_othr n_desc n_value n_strx String
-1 HdrSym 0 134 000000000000119e 1
0 SO 0 2 0000000000001135 1 hello.c
1 OPT 0 0 0000000000000000 9 gcc2_compiled.
2 LSYM 0 0 0000000000000000 24 int:t(0,1)=r(0,1);-2147483648;2147483647;
3 LSYM 0 0 0000000000000000 66 char:t(0,2)=r(0,2);0;127;
4 LSYM 0 0 0000000000000000 92 long int:t(0,3)=r(0,3);-9223372036854775808;9223372036854775807;
5 LSYM 0 0 0000000000000000 157 unsigned int:t(0,4)=r(0,4);0;4294967295;
6 LSYM 0 0 0000000000000000 198 long unsigned int:t(0,5)=r(0,5);0;-1;
7 LSYM 0 0 0000000000000000 236 __int128:t(0,6)=r(0,6);0;-1;
8 LSYM 0 0 0000000000000000 265 __int128 unsigned:t(0,7)=r(0,7);0;-1;
9 LSYM 0 0 0000000000000000 303 long long int:t(0,8)=r(0,8);-9223372036854775808;9223372036854775807;
10 LSYM 0 0 0000000000000000 373 long long unsigned int:t(0,9)=r(0,9);0;-1;
11 LSYM 0 0 0000000000000000 416 short int:t(0,10)=r(0,10);-32768;32767;
12 LSYM 0 0 0000000000000000 456 short unsigned int:t(0,11)=r(0,11);0;65535;
13 LSYM 0 0 0000000000000000 500 signed char:t(0,12)=r(0,12);-128;127;
14 LSYM 0 0 0000000000000000 538 unsigned char:t(0,13)=r(0,13);0;255;
15 LSYM 0 0 0000000000000000 575 float:t(0,14)=r(0,1);4;0;
16 LSYM 0 0 0000000000000000 601 double:t(0,15)=r(0,1);8;0;
17 LSYM 0 0 0000000000000000 628 long double:t(0,16)=r(0,1);16;0;
18 LSYM 0 0 0000000000000000 661 _Float32:t(0,17)=r(0,1);4;0;
19 LSYM 0 0 0000000000000000 690 _Float64:t(0,18)=r(0,1);8;0;
20 LSYM 0 0 0000000000000000 719 _Float128:t(0,19)=r(0,1);16;0;
21 LSYM 0 0 0000000000000000 750 _Float32x:t(0,20)=r(0,1);8;0;
22 LSYM 0 0 0000000000000000 780 _Float64x:t(0,21)=r(0,1);16;0;
23 LSYM 0 0 0000000000000000 811 _Decimal32:t(0,22)=r(0,1);4;0;
24 LSYM 0 0 0000000000000000 842 _Decimal64:t(0,23)=r(0,1);8;0;
25 LSYM 0 0 0000000000000000 873 _Decimal128:t(0,24)=r(0,1);16;0;
26 LSYM 0 0 0000000000000000 906 void:t(0,25)=(0,25)
27 BINCL 0 0 000000000000141f 926 /usr/include/stdio.h
28 BINCL 0 0 00000000000004d9 947 /usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h
29 LSYM 0 0 0000000000000000 996 size_t:t(2,1)=(0,5)
30 EINCL 0 0 0000000000000000 0
31 BINCL 0 0 00000000000015c1 1016 /usr/lib/gcc/x86_64-linux-gnu/8/include/stdarg.h
32 LSYM 0 0 0000000000000000 1065 __gnuc_va_list:t(3,1)=(3,2)=(3,3)=ar(3,4)=r(3,4);0;-1;;0;0;(3,5)=xs__va_list_tag:
33 EINCL 0 0 0000000000000000 0
34 BINCL 0 0 000000000001a643 1147 /usr/include/x86_64-linux-gnu/bits/types.h
35 LSYM 0 0 0000000000000000 1190 __u_char:t(4,1)=(0,13)
36 LSYM 0 0 0000000000000000 1213 __u_short:t(4,2)=(0,11)
37 LSYM 0 0 0000000000000000 1237 __u_int:t(4,3)=(0,4)
38 LSYM 0 0 0000000000000000 1258 __u_long:t(4,4)=(0,5)
39 LSYM 0 0 0000000000000000 1280 __int8_t:t(4,5)=(0,12)
40 LSYM 0 0 0000000000000000 1303 __uint8_t:t(4,6)=(0,13)
41 LSYM 0 0 0000000000000000 1327 __int16_t:t(4,7)=(0,10)
42 LSYM 0 0 0000000000000000 1351 __uint16_t:t(4,8)=(0,11)
43 LSYM 0 0 0000000000000000 1376 __int32_t:t(4,9)=(0,1)
44 LSYM 0 0 0000000000000000 1399 __uint32_t:t(4,10)=(0,4)
45 LSYM 0 0 0000000000000000 1424 __int64_t:t(4,11)=(0,3)
46 LSYM 0 0 0000000000000000 1448 __uint64_t:t(4,12)=(0,5)
47 LSYM 0 0 0000000000000000 1473 __int_least8_t:t(4,13)=(4,5)
48 LSYM 0 0 0000000000000000 1502 __uint_least8_t:t(4,14)=(4,6)
49 LSYM 0 0 0000000000000000 1532 __int_least16_t:t(4,15)=(4,7)
50 LSYM 0 0 0000000000000000 1562 __uint_least16_t:t(4,16)=(4,8)
51 LSYM 0 0 0000000000000000 1593 __int_least32_t:t(4,17)=(4,9)
52 LSYM 0 0 0000000000000000 1623 __uint_least32_t:t(4,18)=(4,10)
53 LSYM 0 0 0000000000000000 1655 __int_least64_t:t(4,19)=(4,11)
54 LSYM 0 0 0000000000000000 1686 __uint_least64_t:t(4,20)=(4,12)
55 LSYM 0 0 0000000000000000 1718 __quad_t:t(4,21)=(0,3)
56 LSYM 0 0 0000000000000000 1741 __u_quad_t:t(4,22)=(0,5)
57 LSYM 0 0 0000000000000000 1766 __intmax_t:t(4,23)=(0,3)
58 LSYM 0 0 0000000000000000 1791 __uintmax_t:t(4,24)=(0,5)
59 LSYM 0 0 0000000000000000 1817 __dev_t:t(4,25)=(0,5)
60 LSYM 0 0 0000000000000000 1839 __uid_t:t(4,26)=(0,4)
61 LSYM 0 0 0000000000000000 1861 __gid_t:t(4,27)=(0,4)
62 LSYM 0 0 0000000000000000 1883 __ino_t:t(4,28)=(0,5)
63 LSYM 0 0 0000000000000000 1905 __ino64_t:t(4,29)=(0,5)
64 LSYM 0 0 0000000000000000 1929 __mode_t:t(4,30)=(0,4)
65 LSYM 0 0 0000000000000000 1952 __nlink_t:t(4,31)=(0,5)
66 LSYM 0 0 0000000000000000 1976 __off_t:t(4,32)=(0,3)
67 LSYM 0 0 0000000000000000 1998 __off64_t:t(4,33)=(0,3)
68 LSYM 0 0 0000000000000000 2022 __pid_t:t(4,34)=(0,1)
69 LSYM 0 0 0000000000000000 2044 __fsid_t:t(4,35)=(4,36)=s8__val:(4,37)=ar(3,4);0;1;(0,1),0,64;;
70 LSYM 0 0 0000000000000000 2108 __clock_t:t(4,38)=(0,3)
71 LSYM 0 0 0000000000000000 2132 __rlim_t:t(4,39)=(0,5)
72 LSYM 0 0 0000000000000000 2155 __rlim64_t:t(4,40)=(0,5)
73 LSYM 0 0 0000000000000000 2180 __id_t:t(4,41)=(0,4)
74 LSYM 0 0 0000000000000000 2201 __time_t:t(4,42)=(0,3)
75 LSYM 0 0 0000000000000000 2224 __useconds_t:t(4,43)=(0,4)
76 LSYM 0 0 0000000000000000 2251 __suseconds_t:t(4,44)=(0,3)
77 LSYM 0 0 0000000000000000 2279 __daddr_t:t(4,45)=(0,1)
78 LSYM 0 0 0000000000000000 2303 __key_t:t(4,46)=(0,1)
79 LSYM 0 0 0000000000000000 2325 __clockid_t:t(4,47)=(0,1)
80 LSYM 0 0 0000000000000000 2351 __timer_t:t(4,48)=(4,49)=*(0,25)
81 LSYM 0 0 0000000000000000 2384 __blksize_t:t(4,50)=(0,3)
82 LSYM 0 0 0000000000000000 2410 __blkcnt_t:t(4,51)=(0,3)
83 LSYM 0 0 0000000000000000 2435 __blkcnt64_t:t(4,52)=(0,3)
84 LSYM 0 0 0000000000000000 2462 __fsblkcnt_t:t(4,53)=(0,5)
85 LSYM 0 0 0000000000000000 2489 __fsblkcnt64_t:t(4,54)=(0,5)
86 LSYM 0 0 0000000000000000 2518 __fsfilcnt_t:t(4,55)=(0,5)
87 LSYM 0 0 0000000000000000 2545 __fsfilcnt64_t:t(4,56)=(0,5)
88 LSYM 0 0 0000000000000000 2574 __fsword_t:t(4,57)=(0,3)
89 LSYM 0 0 0000000000000000 2599 __ssize_t:t(4,58)=(0,3)
90 LSYM 0 0 0000000000000000 2623 __syscall_slong_t:t(4,59)=(0,3)
91 LSYM 0 0 0000000000000000 2655 __syscall_ulong_t:t(4,60)=(0,5)
92 LSYM 0 0 0000000000000000 2687 __loff_t:t(4,61)=(4,33)
93 LSYM 0 0 0000000000000000 2711 __caddr_t:t(4,62)=(4,63)=*(0,2)
94 LSYM 0 0 0000000000000000 2743 __intptr_t:t(4,64)=(0,3)
95 LSYM 0 0 0000000000000000 2768 __socklen_t:t(4,65)=(0,4)
96 LSYM 0 0 0000000000000000 2794 __sig_atomic_t:t(4,66)=(0,1)
97 EINCL 0 0 0000000000000000 0
98 BINCL 0 0 0000000000001536 2823 /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h
99 BINCL 0 0 0000000000001f32 2875 /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h
100 LSYM 0 0 0000000000000000 2930 __mbstate_t:t(6,1)=(6,2)=s8__count:(0,1),0,32;__value:(6,3)=u4__wch:(0,4),0,32;__wchb:(6,4)=ar(3,4);0;3;(0,2),0,32;;,32,32;;
101 EINCL 0 0 0000000000000000 0
102 LSYM 0 0 0000000000000000 3055 _G_fpos_t:T(5,1)=s16__pos:(4,32),0,64;__state:(6,1),64,64;;
103 LSYM 0 0 0000000000000000 3115 __fpos_t:t(5,2)=(5,1)
104 EINCL 0 0 0000000000000000 0
105 BINCL 0 0 000000000000160b 3137 /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h
106 LSYM 0 0 0000000000000000 3191 _G_fpos64_t:T(7,1)=s16__pos:(4,33),0,64;__state:(6,1),64,64;;
107 LSYM 0 0 0000000000000000 3253 __fpos64_t:t(7,2)=(7,1)
108 EINCL 0 0 0000000000000000 0
109 BINCL 0 0 00000000000007fe 3277 /usr/include/x86_64-linux-gnu/bits/types/__FILE.h
110 LSYM 0 0 0000000000000000 3327 __FILE:t(8,1)=(8,2)=xs_IO_FILE:
111 EINCL 0 0 0000000000000000 0
112 BINCL 0 0 0000000000000368 3359 /usr/include/x86_64-linux-gnu/bits/types/FILE.h
113 LSYM 0 0 0000000000000000 3407 FILE:t(9,1)=(8,2)
114 EINCL 0 0 0000000000000000 0
115 BINCL 0 0 000000000000eb7b 3425 /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h
116 LSYM 0 0 0000000000000000 3480 _IO_lock_t:t(10,1)=(0,25)
117 LSYM 0 0 0000000000000000 3506 _IO_FILE:T(8,2)=s216_flags:(0,1),0,32;_IO_read_ptr:(4,63),64,64;_IO_read_end:(4,63),128,64;_IO_read_base:(4,63),192,64;_IO_write_base:(4,63),256,64;_IO_write_ptr:(4,63),320,64;_IO_write_end:(4,63),384,64;_IO_buf_base:(4,63),448,64;_IO_buf_end:(4,63),512,64;_IO_save_base:(4,63),576,64;_IO_backup_base:(4,63),640,64;_IO_save_end:(4,63),704,64;_markers:(10,2)=*(10,3)=xs_IO_marker:,768,64;_chain:(10,4)=*(8,2),832,64;_fileno:(0,1),896,32;_flags2:(0,1),928,32;_old_offset:(4,32),960,64;_cur_column:(0,11),1024,16;_vtable_offset:(0,12),1040,8;_shortbuf:(10,5)=ar(3,4);0;0;(0,2),1048,8;_lock:(10,6)=*(10,1),1088,64;_offset:(4,33),1152,64;_codecvt:(10,7)=*(10,8)=xs_IO_codecvt:,1216,64;_wide_data:(10,9)=*(10,10)=xs_IO_wide_data:,1280,64;_freeres_list:(10,4),1344,64;_freeres_buf:(4,49),1408,64;__pad5:(2,1),1472,64;_mode:(0,1),1536,32;_unused2:(10,11)=ar(3,4);0;19;(0,2),1568,160;;
118 EINCL 0 0 0000000000000000 0
119 LSYM 0 0 0000000000000000 4383 va_list:t(1,1)=(3,1)
120 LSYM 0 0 0000000000000000 4404 off_t:t(1,2)=(4,32)
121 LSYM 0 0 0000000000000000 4424 ssize_t:t(1,3)=(4,58)
122 LSYM 0 0 0000000000000000 4446 fpos_t:t(1,4)=(5,2)
123 EINCL 0 0 0000000000000000 0
124 GSYM 0 0 0000000000000000 4466 a:G(0,1)
125 GSYM 0 0 0000000000000000 4475 str:G(4,63)
126 FUN 0 0 0000000000001135 4487 main:F(0,1)
127 SLINE 0 6 0000000000000000 0
128 SLINE 0 7 0000000000000004 0
129 SOL 0 0 000000000000114a 4499 <built-in>
130 SLINE 0 0 0000000000000015 0
131 SOL 0 0 000000000000114f 1 hello.c
132 SLINE 0 8 000000000000001a 0
133 SO 0 0 0000000000001151 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment