1. Reference
arm-2011.03/share/doc/arm-arm-none-eabi/pdf/ld.pdf
2. An example
OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
/* Use OUTPUT_FORMAT with three arguments to use different formats based
on the ‘-EB’ and ‘-EL’ command line options. This permits the linker script to
set the output format based on the desired endianness.*/
MEMORY
{
rom (rx) : ORIGIN = 0x00000000, LENGTH = 0x00008000
ram (rwx) : ORIGIN = 0x10000000, LENGTH = 0x00002000
}
/* Program code and read-only data go into the ROM. Read-write data goes into
the RAM. An image of the initial