blob: 347cabc45055e6a873a3da152839e9c434b903f9 [file] [log] [blame]
Paul Burton96c68472018-12-16 19:25:22 -03001/* SPDX-License-Identifier: GPL-2.0+ */
2
3MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\
4 LENGTH = CONFIG_SPL_MAX_SIZE }
5MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \
6 LENGTH = CONFIG_SPL_BSS_MAX_SIZE }
7
8OUTPUT_ARCH(mips)
9ENTRY(_start)
10SECTIONS
11{
12 .text :
13 {
14 __image_copy_start = .;
15 arch/mips/mach-jz47xx/start.o (.text*)
16 *(.text*)
17 } >.sram
18
19 . = ALIGN(4);
20 .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram
21
22 . = ALIGN(4);
23 .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
24
25 . = ALIGN(4);
26 __image_copy_end = .;
27
28 .bss : {
29 . = ALIGN(4);
30 __bss_start = .;
31 *(.sbss.*)
32 *(.bss.*)
33 *(COMMON)
34 . = ALIGN(4);
35 __bss_end = .;
36 } >.sdram
37
38 /DISCARD/ : {
39 *(.dynbss)
40 *(.dynstr)
41 *(.dynamic)
42 *(.interp)
43 *(.hash)
44 *(.gnu.*)
45 *(.plt)
46 *(.got.plt)
47 *(.rel.plt)
48 *(.rel.dyn)
49 }
50}