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 |
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:¥Users¥b1501079¥Desktop¥a.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 } } |
struct is output for a structure or union is output for a union. |
|
The member name is concatenated after a symbol name with a dot (.). |
|