3.2.6 Symbol information

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
                00000000     00000023         24
  _main
                00000000            0         func ,g            0
  _func_01
                00000018            0         func ,g            0
SECTION=.bss
FILE=sample.obj
                fe600004     fe60000b         8
  _gvall
                fe600004            4         data ,g            0

Number

Description

(1)

Section name

The name of the section is output.

(2)

File name

The file name is output.

(3)

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.

(4)

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.

(5)

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.

(6)

Symbol name

The symbol name is output.

(7)

Symbol address

The symbol address is output.

This is expressed in a hexadecimal number.

(8)

Symbol size

The symbol size is output (in byte units).

This is expressed in a hexadecimal number.

(9)

Symbol type

The data type and declaration type are output.

-

Data type

func: Function name

data: Variable name

entry: Entry function name

none: Undefined (label, assembler symbol)

-

Declaration type

g: External definition

l: Internal definition

(10)

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.

(11)

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 information regarding the structure and union members defined in the files that have been compiled with -g specified is also output. An output example of the structure member information is shown below.

*** Symbol List ***
SECTION=(1)
FILE=(2)                                START     END      SIZE
                                         (3)      (4)       (5)
  SYMBOL                                  ADDR      SIZE     INFO   COUNTS OPT
   (6)                                    (7)       (8)      (9)     (10)  (11)
    STRUCT                                        SIZE
     (12)                                         (13)
      MEMBER                              ADDR      SIZE     INFO
       (14)                               (15)      (16)     (17)
SECTION=.bss
FILE=C:Usersb1501079Desktopa.obj
                                   00001000 00001007         8
 _st
                                   00001000        8 data ,g      0
   struct {
                                                   8
      _st.mem1
                                   00001000        4 int
      _st.mem2
                                   00001004        2 short
      _st.stmem
                                   00001006        2
   struct {
                                                   2
      _st.stmem.mem3
                                   00001006        1 char
      _st.stmem.mem4
                                   00001007        1 char
}
}

Number

Description

(12)

struct is output for a structure or union is output for a union.

(13)

Total size of the structure or union

(14)

The member name is concatenated after a symbol name with a dot (.).

(15)

The member address is output.

(16)

The member size is output.

(17)

The member type is output.