2018-05-07 06:58:06 +09:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2017-12-26 14:55:48 +09:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2017 Andes Technology Corporation
|
|
|
|
* Rick Chen, Andes Technology Corporation <rick@andestech.com>
|
|
|
|
*/
|
2018-09-26 22:55:12 +09:00
|
|
|
|
2017-12-26 14:55:48 +09:00
|
|
|
OUTPUT_ARCH("riscv")
|
|
|
|
ENTRY(_start)
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = ALIGN(4);
|
2018-09-26 22:55:12 +09:00
|
|
|
.text : {
|
2018-05-29 10:54:40 +09:00
|
|
|
arch/riscv/cpu/ax25/start.o (.text)
|
2018-06-12 14:48:37 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
/* This needs to come before *(.text*) */
|
|
|
|
.efi_runtime : {
|
2018-09-26 22:55:12 +09:00
|
|
|
__efi_runtime_start = .;
|
2018-06-12 14:48:37 +09:00
|
|
|
*(.text.efi_runtime*)
|
|
|
|
*(.rodata.efi_runtime*)
|
|
|
|
*(.data.efi_runtime*)
|
2018-09-26 22:55:12 +09:00
|
|
|
__efi_runtime_stop = .;
|
2018-06-12 14:48:37 +09:00
|
|
|
}
|
|
|
|
|
2018-09-26 22:55:12 +09:00
|
|
|
.text_rest : {
|
2018-06-12 14:48:37 +09:00
|
|
|
*(.text*)
|
2017-12-26 14:55:48 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
.rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
.data : {
|
|
|
|
__global_pointer$ = . + 0x800;
|
|
|
|
*(.data*)
|
|
|
|
}
|
|
|
|
. = ALIGN(4);
|
|
|
|
|
|
|
|
.got : {
|
2018-09-26 22:55:12 +09:00
|
|
|
__got_start = .;
|
|
|
|
*(.got.plt) *(.got)
|
|
|
|
__got_end = .;
|
|
|
|
}
|
2017-12-26 14:55:48 +09:00
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
|
|
|
|
.u_boot_list : {
|
|
|
|
KEEP(*(SORT(.u_boot_list*)));
|
|
|
|
}
|
|
|
|
|
2018-09-26 22:55:12 +09:00
|
|
|
. = ALIGN(4);
|
2018-05-28 20:06:37 +09:00
|
|
|
|
|
|
|
.efi_runtime_rel : {
|
2018-09-26 22:55:12 +09:00
|
|
|
__efi_runtime_rel_start = .;
|
2018-06-12 14:48:37 +09:00
|
|
|
*(.rel*.efi_runtime)
|
|
|
|
*(.rel*.efi_runtime.*)
|
2018-09-26 22:55:12 +09:00
|
|
|
__efi_runtime_rel_stop = .;
|
2018-05-28 20:06:37 +09:00
|
|
|
}
|
|
|
|
|
2018-09-26 22:55:12 +09:00
|
|
|
. = ALIGN(4);
|
2017-12-26 14:55:48 +09:00
|
|
|
|
2018-09-26 22:55:12 +09:00
|
|
|
/DISCARD/ : { *(.rela.plt*) }
|
|
|
|
.rela.dyn : {
|
|
|
|
__rel_dyn_start = .;
|
|
|
|
*(.rela*)
|
|
|
|
__rel_dyn_end = .;
|
|
|
|
}
|
2017-12-26 14:55:48 +09:00
|
|
|
|
2018-09-26 22:55:12 +09:00
|
|
|
. = ALIGN(4);
|
2017-12-26 14:55:48 +09:00
|
|
|
|
2018-09-26 22:55:12 +09:00
|
|
|
.dynsym : {
|
|
|
|
__dyn_sym_start = .;
|
|
|
|
*(.dynsym)
|
|
|
|
__dyn_sym_end = .;
|
|
|
|
}
|
2017-12-26 14:55:48 +09:00
|
|
|
|
2018-09-26 22:55:12 +09:00
|
|
|
. = ALIGN(4);
|
2017-12-26 14:55:48 +09:00
|
|
|
|
|
|
|
_end = .;
|
|
|
|
|
|
|
|
.bss : {
|
2018-09-26 22:55:12 +09:00
|
|
|
__bss_start = .;
|
|
|
|
*(.bss*)
|
2017-12-26 14:55:48 +09:00
|
|
|
. = ALIGN(4);
|
|
|
|
__bss_end = .;
|
|
|
|
}
|
|
|
|
}
|