x.c.obj y.c.obj z.c.obj /* Input filenames */
--output_file=prog.out /* Options */
--map_file=prog.map
--library=rts2800_ml.lib /* Get run-time support */
MEMORY /* MEMORY directive */
{
RAM: origin = 100h length = 0100h
ROM: origin = 01000h length = 0100h
}
SECTIONS /* SECTIONS directive */
{
.text: > ROM
.data: > ROM
.ebss: > RAM
.pinit: > ROM
.cinit: > ROM
.switch: > ROM
.econst: > RAM
.stack: > RAM
.esysmem: > RAM
If you are using EABI instead of COFF, change the following sections as needed: