1 OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
4 STARTUP(target/arm/at91sam/lyre_proto1/crt0.o)
6 #define DRAMSIZE (MEMORYSIZE * 0x100000)
7 #define DRAMORIG 0x20000000
8 #define IRAM0ORIG 0x200000
10 #define IRAM1ORIG 0x300000
16 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
17 IRAM0 : ORIGIN = IRAM0ORIG, LENGTH = IRAM0SIZE
22 /* We will put Rockbox bootloader at the last 1MByte of the SDRAM. */
24 /* Example of a section:
25 * .section VMA(Virtual Memory Address) : LMA(Load Memory Address).
26 * VMA and LMA addresses can be verified by doing:
27 * "arm-elf-objdump -h bootloader.elf". */
29 .vectors 0 : AT (DRAMORIG + DRAMSIZE - 1M)
31 _start_vectors_section = .;
36 _end_vectors_section = .;
39 .text (DRAMORIG + DRAMSIZE -1M + SIZEOF(.vectors)) : \
40 AT (DRAMORIG + DRAMSIZE -1M + SIZEOF(.vectors))
51 /* Initialized variables are placed on SDRAM, right after .vectors section. */
52 /* Data section: VMA is the same as the LMA, right after the end of .vector */
58 _end_data_section = .;
61 /* Uninitialized variables are placed at SDRAM, right after .text section. */
65 _start_bss_section = .;
66 *(.bss) /* Bss section contains all uninitialized data generated by the compiler. */
73 /* Stack is placed at SDRAM, right after .bss section. */