2.2. Using a Custom Linker Script File

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:

Example 2-5. Using a Custom Linker Script File

$ m68k-coff-gnatmake -f hello -largs -T myboard.ld