Getting Started with M68K Ada: Ada 95 Compilation System for the Motorola M68000 Family | ||
---|---|---|
Prev | Chapter 2. Advanced Techniques | Next |
The default linker script file is /opt/m68k-ada-1.7/m68k-coff/lib/ldscripts/coff_erc.x. You should copy this file to your local directory, and edit as necessary.
Example 2-4. Making a Custom Linker Script File
$ cp /opt/m68k-ada-1.7/m68k-coff/lib/ldscripts/coff_erc.x myboard.ld $ vi myboard.ld
You can then build a program using your custom linker script rather than the default as follows: