When the -show=symbol option is specified, the external defined symbol or static internal defined symbol address, size, type, and whether optimization is applied are output in the order of address.
When the -show=reference option is specified, the reference count of each symbol is also output.
The output example of the symbol information is shown below.
*** Symbol List ***
SECTION=(1)
FILE=(2)
(3) (4) (5)
START END SIZE
(6) (7) (8) (9) (10) (11)
SYMBOL ADDR SIZE INFO COUNTS OPT
SECTION=.text
FILE=sample.obj
00000100 00000123 24
_main
00000100 0 func ,g 0
_func_01
00000118 0 func ,g 0
SECTION=.bss
FILE=sample.obj
000f0404 000f040b 8
_gvall
000f0404 4 data ,g 0
|
|
|
|
Section name
The name of the section is output.
|
|
File name
The file name is output.
|
|
Start address
The start address of the corresponding section included in the file shown in (2) is output.
This is expressed in a hexadecimal number.
|
|
End address
The end address of the corresponding section included in the file shown in (2) is output.
This is expressed in a hexadecimal number.
|
|
Section size
The size of the corresponding section included in the file shown in (2) is output (in byte units).
This is expressed in a hexadecimal number.
|
|
Symbol name
The symbol name is output.
|
|
Symbol address
The symbol address is output.
This is expressed in a hexadecimal number.
|
|
Symbol size
The symbol size is output (in byte units).
This is expressed in a hexadecimal number.
|
|
Symbol type
The data type and declaration type are output.
func: Function name
data: Variable name
entry: Entry function name
none: Undefined (label, assembler symbol)
g: External definition
l: Internal definition
|
|
Reference count of symbol
The reference count of the symbol is output.
This is expressed in a hexadecimal number.
This item is output only when the -show=reference option is specified.
When the reference count of the symbol is not output, "*" is output.
|
|
Whether optimization is applied
Whether optimization is applied is output.
ch: Symbol changed by optimization
cr: Symbol generated by optimization
mv: Symbol moved by optimization
|
When the -show=struct option is specified, the addresses for the structure and union members that are defined in the source file for which the -g option was specified at compilation are output.
The output example of the symbol information is shown below.
*** Symbol List ***
SECTION
FILE
START END SIZE
SYMBOL ADDR SIZE INFO COUNTS OPT
(1) (2)
STRUCT SIZE
(3) (4) (5) (6)
MEMBER ADDR SIZE INFO
SECTION=B
FILE=sample.obj
00001000 00001003 4
a
00001000 4 data ,g 1
struct A{
4
a.b
00001000 1 char
a.c
00001002 2 short
|
|
|
|
Type name
The type name of the structure or union is output.
|
|
Size
The size of the structure or union is output.
|
|
Name of member
The names of the members of the structure or union are output.
|
|
Address of member
The addresses of the members of the structure or union are output.
|
|
Size of member
The sizes of the members of the structure or union are output.
For a bit field, the type size of the member of the structure or union is output.
|
|
Type name of member
The type names of the members of the structure or union are output.
For a bit field, the type name of the member of the structure or union is output.
For the pointer type, the following is output.
[pointer]: When __near or __far is not specified
[near pointer]: When the pointer is specified to be a near pointer
[far pointer]: When the pointer is specified to be a far pointer
|