2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2017-12-26 05:55:48 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2017 Andes Technology Corporation
|
|
|
|
* Rick Chen, Andes Technology Corporation <rick@andestech.com>
|
|
|
|
*/
|
2018-09-26 13:55:12 +00:00
|
|
|
|
2017-12-26 05:55:48 +00:00
|
|
|
OUTPUT_ARCH("riscv")
|
|
|
|
ENTRY(_start)
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = ALIGN(4);
|
2018-09-26 13:55:12 +00:00
|
|
|
.text : {
|
2018-09-26 13:55:17 +00:00
|
|
|
arch/riscv/cpu/start.o (.text)
|
2018-06-12 05:48:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* This needs to come before *(.text*) */
|
|
|
|
.efi_runtime : {
|
2018-09-26 13:55:12 +00:00
|
|
|
__efi_runtime_start = .;
|
2018-06-12 05:48:37 +00:00
|
|
|
*(.text.efi_runtime*)
|
|
|
|
*(.rodata.efi_runtime*)
|
|
|
|
*(.data.efi_runtime*)
|
2018-09-26 13:55:12 +00:00
|
|
|
__efi_runtime_stop = .;
|
2018-06-12 05:48:37 +00:00
|
|
|
}
|
|
|
|
|
2018-09-26 13:55:12 +00:00
|
|
|
.text_rest : {
|
2018-06-12 05:48:37 +00:00
|
|
|
*(.text*)
|
2017-12-26 05:55:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
.rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
.data : {
|
|
|
|
*(.data*)
|
|
|
|
}
|
|
|
|
. = ALIGN(4);
|
|
|
|
|
|
|
|
.got : {
|
2018-09-26 13:55:12 +00:00
|
|
|
__got_start = .;
|
|
|
|
*(.got.plt) *(.got)
|
|
|
|
__got_end = .;
|
|
|
|
}
|
2017-12-26 05:55:48 +00:00
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
|
2022-05-30 10:00:04 +00:00
|
|
|
__u_boot_list : {
|
|
|
|
KEEP(*(SORT(__u_boot_list*)));
|
2017-12-26 05:55:48 +00:00
|
|
|
}
|
|
|
|
|
2018-09-26 13:55:12 +00:00
|
|
|
. = ALIGN(4);
|
2018-05-28 11:06:37 +00:00
|
|
|
|
|
|
|
.efi_runtime_rel : {
|
2018-09-26 13:55:12 +00:00
|
|
|
__efi_runtime_rel_start = .;
|
2018-06-12 05:48:37 +00:00
|
|
|
*(.rel*.efi_runtime)
|
|
|
|
*(.rel*.efi_runtime.*)
|
2018-09-26 13:55:12 +00:00
|
|
|
__efi_runtime_rel_stop = .;
|
2018-05-28 11:06:37 +00:00
|
|
|
}
|
|
|
|
|
2018-09-26 13:55:12 +00:00
|
|
|
. = ALIGN(4);
|
2017-12-26 05:55:48 +00:00
|
|
|
|
2018-09-26 13:55:12 +00:00
|
|
|
/DISCARD/ : { *(.rela.plt*) }
|
|
|
|
.rela.dyn : {
|
|
|
|
__rel_dyn_start = .;
|
|
|
|
*(.rela*)
|
|
|
|
__rel_dyn_end = .;
|
|
|
|
}
|
2017-12-26 05:55:48 +00:00
|
|
|
|
2018-09-26 13:55:12 +00:00
|
|
|
. = ALIGN(4);
|
2017-12-26 05:55:48 +00:00
|
|
|
|
2018-09-26 13:55:12 +00:00
|
|
|
.dynsym : {
|
|
|
|
__dyn_sym_start = .;
|
|
|
|
*(.dynsym)
|
|
|
|
__dyn_sym_end = .;
|
|
|
|
}
|
2017-12-26 05:55:48 +00:00
|
|
|
|
2018-09-26 13:55:12 +00:00
|
|
|
. = ALIGN(4);
|
2017-12-26 05:55:48 +00:00
|
|
|
|
|
|
|
_end = .;
|
|
|
|
|
|
|
|
.bss : {
|
2018-09-26 13:55:12 +00:00
|
|
|
__bss_start = .;
|
|
|
|
*(.bss*)
|
2019-11-14 05:52:27 +00:00
|
|
|
. = ALIGN(8);
|
2017-12-26 05:55:48 +00:00
|
|
|
__bss_end = .;
|
|
|
|
}
|
|
|
|
}
|