foundations of embedded systems 37
1 % sh-elf-objdump -G simple
2
3 simple: file format coff-sh
4
5 Contents of .stab section:
6
7 Symnum n
_
type n
_
othr n
_
desc n
_
value n
_
strx String
8
9 -1 HdrSym 0 39 00000355 1
10 0 SO 0 2 0800401c 10 simple.c
11 1 OPT 0 0 00000000 19 gcc2
_
compiled.
12 2 LSYM 0 0 00000000 34 int:t(0,1)=r(0,1);-2147483648;2147483647;
13 3 LSYM 0 0 00000000 76 char:t(0,2)=r(0,2);0;127;
14 4 LSYM 0 0 00000000 102 long int:t(0,3)=r(0,3);-2147483648;2147483647;
15 5 LSYM 0 0 00000000 149 unsigned int:t(0,4)=r(0,4);0;4294967295;
16 6 LSYM 0 0 00000000 190 long unsigned int:t(0,5)=r(0,5);0;4294967295;
17 7 LSYM 0 0 00000000 236
__
int128:t(0,6)=r(0,6);0;-1;
18 8 LSYM 0 0 00000000 265
__
int128 unsigned:t(0,7)=r(0,7);0;-1;
19 9 LSYM 0 0 00000000 303 long long int:t(0,8)=r(0,8);-9223372036854775808;9223372036854775807;
20 10 LSYM 0 0 00000000 373 long long unsigned int:t(0,9)=r(0,9);0;-1;
21 11 LSYM 0 0 00000000 416 short int:t(0,10)=r(0,10);-32768;32767;
22 12 LSYM 0 0 00000000 456 short unsigned int:t(0,11)=r(0,11);0;65535;
23 13 LSYM 0 0 00000000 500 signed char:t(0,12)=r(0,12);-128;127;
24 14 LSYM 0 0 00000000 538 unsigned char:t(0,13)=r(0,13);0;255;
25 15 LSYM 0 0 00000000 575 float:t(0,14)=r(0,1);4;0;
26 16 LSYM 0 0 00000000 601 double:t(0,15)=r(0,1);8;0;
27 17 LSYM 0 0 00000000 628 long double:t(0,16)=r(0,1);8;0;
28 18 LSYM 0 0 00000000 660
_
Float32:t(0,17)=r(0,1);4;0;
29 19 LSYM 0 0 00000000 689
_
Float64:t(0,18)=r(0,1);8;0;
30 20 LSYM 0 0 00000000 718
_
Float32x:t(0,19)=r(0,1);8;0;
31 21 LSYM 0 0 00000000 748 void:t(0,20)=(0,20)
32 22 GSYM 0 0 00000000 768 gUninitializedInt:G(0,1)
33 23 GSYM 0 0 00000000 793 gInitializedInt:G(0,1)
34 24 FUN 0 0 0800401c 816 noMain:F(0,1)
35 25 SLINE 0 6 00000000 0
36 26 SLINE 0 9 00000006 0
37 27 SLINE 0 9 0000000e 0
38 28 SLINE 0 11 00000012 0
39 29 SLINE 0 11 0000001c 0
40 30 SLINE 0 9 0000002a 0
41 31 SLINE 0 9 00000038 0
42 32 SLINE 0 14 00000044 0
43 33 SLINE 0 15 00000046 0
44 34 LSYM 0 0 00000004 830 i:(0,1)
45 35 LSYM 0 0 00000000 838 localInt:(0,1)
46 36 LBRAC 0 0 00000000 0
47 37 RBRAC 0 0 0000005c 0
48 38 SO 0 0 08004078 0
The second column of the output indicates the type of symbol described by
a given row (line) in the output. For example, FUN indicates a function defi-
nition, in this case, indicating the function noMain. The fifth column contains
information specific to the symbol type (in the case of noMain, its location in
the address space of the program when the program is running); for the local
variable localInt, this column indicates the offset from the frame pointer on