2022-12-20 17:49:37 +08:00
|
|
|
OUTPUT_FORMAT("elf64-littleaarch64", "elf64-littleaarch64", "elf64-littleaarch64")
|
|
|
|
OUTPUT_ARCH(aarch64)
|
2021-08-06 18:35:58 +08:00
|
|
|
SECTIONS
|
|
|
|
{
|
2022-12-20 17:49:37 +08:00
|
|
|
. = 0x40080000;
|
|
|
|
/* . = 0xffff000000080000; */
|
|
|
|
|
|
|
|
__text_start = .;
|
2021-08-06 18:35:58 +08:00
|
|
|
.text :
|
|
|
|
{
|
2022-12-20 17:49:37 +08:00
|
|
|
KEEP(*(.text.entrypoint))
|
|
|
|
KEEP(*(.vectors))
|
|
|
|
*(.text)
|
|
|
|
*(.text.*)
|
2021-08-06 18:35:58 +08:00
|
|
|
|
2022-12-20 17:49:37 +08:00
|
|
|
/* section information for utest */
|
|
|
|
. = ALIGN(8);
|
|
|
|
__rt_utest_tc_tab_start = .;
|
|
|
|
KEEP(*(UtestTcTab))
|
|
|
|
__rt_utest_tc_tab_end = .;
|
2021-08-06 18:35:58 +08:00
|
|
|
|
|
|
|
/* section information for finsh shell */
|
2022-12-20 17:49:37 +08:00
|
|
|
. = ALIGN(8);
|
2021-08-06 18:35:58 +08:00
|
|
|
__fsymtab_start = .;
|
|
|
|
KEEP(*(FSymTab))
|
|
|
|
__fsymtab_end = .;
|
2022-12-20 17:49:37 +08:00
|
|
|
. = ALIGN(8);
|
2021-08-06 18:35:58 +08:00
|
|
|
__vsymtab_start = .;
|
|
|
|
KEEP(*(VSymTab))
|
|
|
|
__vsymtab_end = .;
|
2022-12-20 17:49:37 +08:00
|
|
|
. = ALIGN(8);
|
2021-08-06 18:35:58 +08:00
|
|
|
|
2022-12-20 17:49:37 +08:00
|
|
|
/* section information for modules */
|
|
|
|
. = ALIGN(8);
|
|
|
|
__rtmsymtab_start = .;
|
|
|
|
KEEP(*(RTMSymTab))
|
|
|
|
__rtmsymtab_end = .;
|
|
|
|
|
|
|
|
/* section information for initialization */
|
|
|
|
. = ALIGN(8);
|
2021-08-06 18:35:58 +08:00
|
|
|
__rt_init_start = .;
|
|
|
|
KEEP(*(SORT(.rti_fn*)))
|
|
|
|
__rt_init_end = .;
|
2022-12-20 17:49:37 +08:00
|
|
|
} =0
|
|
|
|
__text_end = .;
|
2021-08-06 18:35:58 +08:00
|
|
|
|
2022-12-20 17:49:37 +08:00
|
|
|
.ARM.exidx :
|
2021-08-06 18:35:58 +08:00
|
|
|
{
|
2022-12-20 17:49:37 +08:00
|
|
|
__exidx_start = .;
|
|
|
|
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
|
|
|
|
__exidx_end = .;
|
2021-08-06 18:35:58 +08:00
|
|
|
}
|
|
|
|
|
2022-12-20 17:49:37 +08:00
|
|
|
__rodata_start = .;
|
|
|
|
.rodata : { *(.rodata) *(.rodata.*) }
|
|
|
|
__rodata_end = .;
|
2021-08-06 18:35:58 +08:00
|
|
|
|
2022-12-20 17:49:37 +08:00
|
|
|
. = ALIGN(8);
|
2021-08-06 18:35:58 +08:00
|
|
|
.ctors :
|
|
|
|
{
|
|
|
|
PROVIDE(__ctors_start__ = .);
|
2022-04-19 18:28:26 +08:00
|
|
|
KEEP(*(SORT(.init_array.*)))
|
|
|
|
KEEP(*(.init_array))
|
2021-08-06 18:35:58 +08:00
|
|
|
PROVIDE(__ctors_end__ = .);
|
|
|
|
}
|
|
|
|
|
|
|
|
.dtors :
|
|
|
|
{
|
|
|
|
PROVIDE(__dtors_start__ = .);
|
2022-12-20 17:49:37 +08:00
|
|
|
KEEP(*(SORT(.fini_array.*)))
|
|
|
|
KEEP(*(.fini_array))
|
2021-08-06 18:35:58 +08:00
|
|
|
PROVIDE(__dtors_end__ = .);
|
|
|
|
}
|
|
|
|
|
2022-12-20 17:49:37 +08:00
|
|
|
. = ALIGN(8);
|
|
|
|
__data_start = .;
|
|
|
|
.data :
|
2021-08-06 18:35:58 +08:00
|
|
|
{
|
2022-12-20 17:49:37 +08:00
|
|
|
*(.data)
|
|
|
|
*(.data.*)
|
2021-08-06 18:35:58 +08:00
|
|
|
}
|
2022-12-20 17:49:37 +08:00
|
|
|
__data_end = .;
|
|
|
|
|
|
|
|
. = ALIGN(8);
|
|
|
|
__bss_start = .;
|
|
|
|
.bss :
|
|
|
|
{
|
|
|
|
*(.bss)
|
|
|
|
*(.bss.*)
|
|
|
|
*(COMMON)
|
|
|
|
. = ALIGN(8);
|
|
|
|
}
|
|
|
|
. = ALIGN(8);
|
|
|
|
__bss_end = .;
|
2021-08-06 18:35:58 +08:00
|
|
|
|
|
|
|
/* Stabs debugging sections. */
|
2022-12-20 17:49:37 +08:00
|
|
|
.stab 0 : { *(.stab) }
|
|
|
|
.stabstr 0 : { *(.stabstr) }
|
|
|
|
.stab.excl 0 : { *(.stab.excl) }
|
|
|
|
.stab.exclstr 0 : { *(.stab.exclstr) }
|
|
|
|
.stab.index 0 : { *(.stab.index) }
|
2021-08-06 18:35:58 +08:00
|
|
|
.stab.indexstr 0 : { *(.stab.indexstr) }
|
2022-12-20 17:49:37 +08:00
|
|
|
.comment 0 : { *(.comment) }
|
|
|
|
|
|
|
|
__data_size = SIZEOF(.data);
|
|
|
|
__bss_size = SIZEOF(.bss);
|
2021-08-06 18:35:58 +08:00
|
|
|
|
2022-12-20 17:49:37 +08:00
|
|
|
_end = .;
|
|
|
|
}
|