312
Section 5: Utilities
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
Note:
Usually the output from nm68 will be too large to fit on a single screen. You will probably
want to redirect the output to a scratch file, using the redirection operator ( > ), and then
examine the display using a text editor.
The following command dumps the contents of the file and section headers that
are part of the executable file hello.out:
nm68 -h hello.out
The output from the above invocation of nm68 is listed below:
MAGIC_NUMBER: 0x0150
①
Wed Oct 21 01:20:18 1992
②
SECTIONS: 4
③
SYMBOLS: 216
④
(001932
⑤
, 002862
⑥
) FLAGS: 0x0003
⑦
A.OUT_MAGIC: 0x0107
VERSION: 300
TSIZE: 0017dc
⑧
DSIZE: 000008
⑧
BSIZE: 0000e0
⑧
ENTRY: 005000
⑨
TSTART: 005000
➉
DSTART: 006824
➉
.text
➊
ADDRESS: p-005000
➋
v-005000
➌
SIZE: 0017dc
➍
(0000d0
➎
)
FLAGS: 0120
➏
LINE_ENTRIES: 9
➐
(0018fc
➑
)
RELOC_ENTRIES: 0
➒
(000000
➓
)
.ld_tbl
ADDRESS: p-0067dc v-0067dc SIZE: 000048 (0018ac)
FLAGS: 0120
LINE_ENTRIES: 0
(001932)
RELOC_ENTRIES: 0
(000000)
.data
ADDRESS: p-006824 v-006824 SIZE: 000008 (0018f4)
FLAGS: 0140
LINE_ENTRIES: 0
(001932)
RELOC_ENTRIES: 0
(000000)
.bss
ADDRESS: p-00682c v-00682c SIZE: 0000e0 (000000)
FLAGS: 0180
LINE_ENTRIES: 0
(000000)
RELOC_ENTRIES: 0
(000000)
Key:
➀
All 68000 family executable files begin with 0x150. See section 1.4.2.1. Magic Number.
➁
Date the object file was created.
➂
Number of output sections in the object file.
➃
Number of symbols in the file.
➄
File offset (hexadecimal) to the start of the symbol table.
➅
File offset (hexadecimal) to the start of the string table.
➆
File header flags. See section 1.4.2.3 Flags, Table 1.4.
➇
Size in bytes (hexadecimal) of sections .text, .data and .bss.
➈
Entry point or starting address (hexadecimal) of program.
➉
Starting address (hexadecimal) of sections .text and .data.
➊
Section name. Empty if section is an unnamed ORG section.
➋
Physical address (hexadecimal) of section. See section 1.4.1.2 Physical and Virtual Addresses.
➌
Virtual address (hexadecimal) of section. See section 1.4.1.2 Physical and Virtual Addresses.
➍
Size in bytes (hexadecimal) of section.