Paul Burton | 96c6847 | 2018-12-16 19:25:22 -0300 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | |
| 3 | MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\ |
| 4 | LENGTH = CONFIG_SPL_MAX_SIZE } |
| 5 | MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \ |
| 6 | LENGTH = CONFIG_SPL_BSS_MAX_SIZE } |
| 7 | |
| 8 | OUTPUT_ARCH(mips) |
| 9 | ENTRY(_start) |
| 10 | SECTIONS |
| 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 | } |