3.4. Using Sourcery CodeBench with MIPS Boards

The provided CS3 linker scripts for MIPS Malta and SEAD-3 boards (both bare-metal and YAMON profiles) assume a minimum amount of RAM is available on the target. Refer to the following table for the specific requirements. If your target board has less memory, you must adjust the memory layout used by the linker by specifying a custom linker script.

BoardMemory Requirement
Malta128MB
SEAD-3 LX504MB
SEAD-3 LX110128MB

Find the linker script for your selected profile, such as mips-sde-elf/lib/malta-ram-hosted.ld, in your Sourcery CodeBench Lite installation and copy it to your project working directory. In your local copy, find the MEMORY directive and edit the LENGTH expression to match the amount of memory available on your board. Then, use the full absolute pathname of your modified linker script with the -T command-line option when linking your program.