2018-02-08 15:27:53 +08:00
|
|
|
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
|
|
|
|
OUTPUT_ARCH(arm)
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = 0x80000000;
|
2023-01-09 10:16:47 +08:00
|
|
|
|
2018-02-08 15:27:53 +08:00
|
|
|
. = ALIGN(4);
|
|
|
|
__text_start = .;
|
|
|
|
.text :
|
|
|
|
{
|
|
|
|
*(.vectors)
|
|
|
|
*(.text)
|
|
|
|
*(.text.*)
|
2023-01-09 10:16:47 +08:00
|
|
|
KEEP(*(.fini))
|
2018-02-08 15:27:53 +08:00
|
|
|
|
|
|
|
/* section information for finsh shell */
|
|
|
|
. = ALIGN(4);
|
|
|
|
__fsymtab_start = .;
|
|
|
|
KEEP(*(FSymTab))
|
|
|
|
__fsymtab_end = .;
|
|
|
|
. = ALIGN(4);
|
|
|
|
__vsymtab_start = .;
|
|
|
|
KEEP(*(VSymTab))
|
|
|
|
__vsymtab_end = .;
|
|
|
|
. = ALIGN(4);
|
|
|
|
|
|
|
|
/* section information for modules */
|
|
|
|
. = ALIGN(4);
|
|
|
|
__rtmsymtab_start = .;
|
|
|
|
KEEP(*(RTMSymTab))
|
|
|
|
__rtmsymtab_end = .;
|
|
|
|
|
|
|
|
/* section information for initialization */
|
|
|
|
. = ALIGN(4);
|
|
|
|
__rt_init_start = .;
|
|
|
|
KEEP(*(SORT(.rti_fn*)))
|
|
|
|
__rt_init_end = .;
|
|
|
|
} =0
|
|
|
|
__text_end = .;
|
|
|
|
|
|
|
|
__rodata_start = .;
|
|
|
|
.rodata : { *(.rodata) *(.rodata.*) *(.eh_frame) }
|
|
|
|
__rodata_end = .;
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
.ctors :
|
|
|
|
{
|
|
|
|
PROVIDE(__ctors_start__ = .);
|
2023-01-09 10:16:47 +08:00
|
|
|
*crtbegin.o(.ctors)
|
|
|
|
*crtbegin?.o(.ctors)
|
|
|
|
*(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)
|
|
|
|
*(SORT(.ctors.*))
|
|
|
|
*(.ctors)
|
|
|
|
PROVIDE(__ctors_end__ = .);
|
2018-02-08 15:27:53 +08:00
|
|
|
}
|
|
|
|
|
2023-01-09 10:16:47 +08:00
|
|
|
.ARM.extab :
|
2018-02-08 15:27:53 +08:00
|
|
|
{
|
2023-01-09 10:16:47 +08:00
|
|
|
*(.ARM.extab* .gnu.linkonce.armextab.*)
|
|
|
|
}
|
2018-02-08 15:27:53 +08:00
|
|
|
/* The .ARM.exidx section is used for C++ exception handling. */
|
|
|
|
/* .ARM.exidx is sorted, so has to go in its own output section. */
|
|
|
|
__exidx_start = .;
|
|
|
|
ARM.exidx :
|
|
|
|
{
|
|
|
|
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
|
|
|
|
|
|
|
|
/* This is used by the startup in order to initialize the .data secion */
|
|
|
|
_sidata = .;
|
|
|
|
}
|
|
|
|
__exidx_end = .;
|
2023-01-09 10:16:47 +08:00
|
|
|
|
2018-02-08 15:27:53 +08:00
|
|
|
.dtors :
|
|
|
|
{
|
|
|
|
PROVIDE(__dtors_start__ = .);
|
|
|
|
*crtbegin.o(.dtors)
|
2023-01-09 10:16:47 +08:00
|
|
|
*crtbegin?.o(.dtors)
|
|
|
|
*(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)
|
|
|
|
*(SORT(.dtors.*))
|
|
|
|
*(.dtors)
|
2018-02-08 15:27:53 +08:00
|
|
|
PROVIDE(__dtors_end__ = .);
|
|
|
|
}
|
|
|
|
|
2019-10-22 09:47:41 +08:00
|
|
|
. = ALIGN(8);
|
2018-02-08 15:27:53 +08:00
|
|
|
__data_start = .;
|
|
|
|
.data :
|
|
|
|
{
|
|
|
|
*(.data)
|
|
|
|
*(.data.*)
|
|
|
|
|
2023-01-09 10:16:47 +08:00
|
|
|
. = ALIGN(4);
|
|
|
|
/* preinit data */
|
|
|
|
PROVIDE_HIDDEN (__preinit_array_start = .);
|
|
|
|
KEEP(*(.preinit_array))
|
|
|
|
PROVIDE_HIDDEN (__preinit_array_end = .);
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
/* init data */
|
|
|
|
PROVIDE_HIDDEN (__init_array_start = .);
|
|
|
|
KEEP(*(SORT(.init_array.*)))
|
|
|
|
KEEP(*(.init_array))
|
|
|
|
PROVIDE_HIDDEN (__init_array_end = .);
|
|
|
|
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
/* finit data */
|
|
|
|
PROVIDE_HIDDEN (__fini_array_start = .);
|
|
|
|
KEEP(*(SORT(.fini_array.*)))
|
|
|
|
KEEP(*(.fini_array))
|
|
|
|
PROVIDE_HIDDEN (__fini_array_end = .);
|
|
|
|
|
|
|
|
KEEP(*(.jcr*))
|
|
|
|
. = ALIGN(4);
|
|
|
|
/* All data end */
|
2018-02-08 15:27:53 +08:00
|
|
|
|
|
|
|
*(.gnu.linkonce.d*)
|
|
|
|
}
|
|
|
|
__data_end = .;
|
|
|
|
|
2019-10-22 09:47:41 +08:00
|
|
|
. = ALIGN(8);
|
2018-02-08 15:27:53 +08:00
|
|
|
__bss_start = .;
|
|
|
|
.bss :
|
|
|
|
{
|
|
|
|
*(.bss)
|
|
|
|
*(.bss.*)
|
|
|
|
*(COMMON)
|
|
|
|
. = ALIGN(4);
|
|
|
|
}
|
|
|
|
. = ALIGN(4);
|
|
|
|
__bss_end = .;
|
|
|
|
|
|
|
|
/* Stabs debugging sections. */
|
|
|
|
.stab 0 : { *(.stab) }
|
|
|
|
.stabstr 0 : { *(.stabstr) }
|
|
|
|
.stab.excl 0 : { *(.stab.excl) }
|
|
|
|
.stab.exclstr 0 : { *(.stab.exclstr) }
|
|
|
|
.stab.index 0 : { *(.stab.index) }
|
|
|
|
.stab.indexstr 0 : { *(.stab.indexstr) }
|
|
|
|
.comment 0 : { *(.comment) }
|
|
|
|
|
|
|
|
.debug_abbrev 0 : { *(.debug_abbrev) }
|
|
|
|
.debug_info 0 : { *(.debug_info) }
|
|
|
|
.debug_line 0 : { *(.debug_line) }
|
|
|
|
.debug_pubnames 0 : { *(.debug_pubnames) }
|
|
|
|
.debug_aranges 0 : { *(.debug_aranges) }
|
|
|
|
_end = .;
|
|
|
|
}
|