summaryrefslogtreecommitdiff
path: root/utils/rk27utils/rk27load/stage1/stage1.lds
blob: dbcc7e52495edfab1172240f9c0c810b6f190985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
ENTRY(start)
OUTPUT_FORMAT(elf32-littlearm)
OUTPUT_ARCH(arm)
/* STARTUP(crt0.o) */

/* this is where bootrom loads sdram init code */
MEMORY
{
    IRAM  : ORIGIN = 0x18200E00, LENGTH = 0x00000200
}

SECTIONS
{
    .text : {
      *(.text*)
      *(.glue_7*)
    } > IRAM

    .data : {
      *(.rodata*)
      *(.data*)
    } > IRAM

    .magic 0x18200ff8 : {
      BYTE(0x51); /* R */
      BYTE(0x4B); /* K */
      BYTE(0x32); /* 2 */
      BYTE(0x37); /* 7 */
      BYTE(0x56); /* V */
      BYTE(0x31); /* 1 */
    }
}