| Getting Started with M68K Ada: Ada 95 Compilation System for the Motorola M68000 Family | ||
|---|---|---|
| Prev | Chapter 2. Advanced Techniques | Next |
If all you need is a link map, then you can ask the linker for one. This is a little more subtle than you may expect, because the option must be passed to the program m68k-coff-ld rather than the ada linker. Here is an example that generates a map called hello.map.
Example 2-7. The Map File
$ more hello.map
...
*(.text)
.text 0x00000104 0x502 art0.o
0x00000104 __warm_start
0x00000104 start
*fill* 0x00000606 0x2
.text 0x00000608 0x64 b~hello.o
0x00000632 __break_start
0x0000065c ada_main___elabb
0x00000608 adainit
0x0000063a main
0x0000062a adafinal
.text 0x0000066c 0x24 ./hello.o
0x0000066c _ada_hello
.text 0x00000690 0x392 libgnat.a(a-except.o)
0x00000936 ada__exceptions__save_occurrence
0x00000690 ada__exceptions___elabs
0x000009c4 ada__exceptions__save_occurrence$2
0x00000a10 ada__exceptions___init_proc$2
0x000008f4 ada__exceptions__exception_information
0x000006b6 ada__exceptions__exception_message
0x0000076a ada__exceptions__reraise_occurrence
0x000009fe ada__exceptions___init_proc
0x000007f8 ada__exceptions__exception_name
0x000007ca ada__exceptions__exception_identity
...lots of output...