2019-08-21 19:14:45 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
/*
|
|
|
|
* Based on arch/riscv/cpu/u-boot.lds, which is
|
|
|
|
* Copyright (C) 2017 Andes Technology Corporation
|
|
|
|
* Rick Chen, Andes Technology Corporation <rick@andestech.com>
|
|
|
|
*
|
|
|
|
* and arch/mips/cpu/u-boot-spl.lds.
|
|
|
|
*/
|
|
|
|
MEMORY { .spl_mem : ORIGIN = IMAGE_TEXT_BASE, LENGTH = IMAGE_MAX_SIZE }
|
|
|
|
MEMORY { .bss_mem : ORIGIN = CONFIG_SPL_BSS_START_ADDR, \
|
|
|
|
LENGTH = CONFIG_SPL_BSS_MAX_SIZE }
|
|
|
|
|
|
|
|
OUTPUT_ARCH("riscv")
|
|
|
|
ENTRY(_start)
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = ALIGN(4);
|
|
|
|
.text : {
|
|
|
|
arch/riscv/cpu/start.o (.text)
|
|
|
|
*(.text*)
|
|
|
|
} > .spl_mem
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
.rodata : {
|
|
|
|
*(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
|
|
|
|
} > .spl_mem
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
.data : {
|
|
|
|
*(.data*)
|
|
|
|
} > .spl_mem
|
|
|
|
. = ALIGN(4);
|
|
|
|
|
2022-05-30 10:00:04 +00:00
|
|
|
__u_boot_list : {
|
|
|
|
KEEP(*(SORT(__u_boot_list*)));
|
2019-08-21 19:14:45 +00:00
|
|
|
} > .spl_mem
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
|
|
|
|
.binman_sym_table : {
|
|
|
|
__binman_sym_start = .;
|
|
|
|
KEEP(*(SORT(.binman_sym*)));
|
|
|
|
__binman_sym_end = .;
|
|
|
|
} > .spl_mem
|
|
|
|
|
2023-04-13 06:20:08 +00:00
|
|
|
. = ALIGN(8);
|
2019-08-21 19:14:45 +00:00
|
|
|
|
|
|
|
_end = .;
|
2020-05-29 06:03:23 +00:00
|
|
|
_image_binary_end = .;
|
2019-08-21 19:14:45 +00:00
|
|
|
|
|
|
|
.bss : {
|
|
|
|
__bss_start = .;
|
|
|
|
*(.bss*)
|
2019-11-14 05:52:27 +00:00
|
|
|
. = ALIGN(8);
|
2019-08-21 19:14:45 +00:00
|
|
|
__bss_end = .;
|
|
|
|
} > .bss_mem
|
|
|
|
}
|