2009-12-11 17:42:01 +08:00
|
|
|
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
|
|
|
|
OUTPUT_ARCH(arm)
|
|
|
|
ENTRY(_start)
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = 0x30000000;
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
2010-02-26 22:13:30 +08:00
|
|
|
.text :
|
|
|
|
{
|
2009-12-11 17:42:01 +08:00
|
|
|
*(.init)
|
|
|
|
*(.text)
|
|
|
|
*(.gnu.linkonce.t*)
|
2010-02-26 22:13:30 +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);
|
2010-04-13 01:37:37 +08:00
|
|
|
|
|
|
|
/* section information for modules */
|
|
|
|
. = ALIGN(4);
|
|
|
|
__rtmsymtab_start = .;
|
|
|
|
KEEP(*(RTMSymTab))
|
|
|
|
__rtmsymtab_end = .;
|
2009-12-11 17:42:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
.rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r*) *(.eh_frame) }
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
.ctors :
|
|
|
|
{
|
|
|
|
PROVIDE(__ctors_start__ = .);
|
|
|
|
KEEP(*(SORT(.ctors.*)))
|
|
|
|
KEEP(*(.ctors))
|
|
|
|
PROVIDE(__ctors_end__ = .);
|
|
|
|
}
|
|
|
|
|
|
|
|
.dtors :
|
|
|
|
{
|
|
|
|
PROVIDE(__dtors_start__ = .);
|
|
|
|
KEEP(*(SORT(.dtors.*)))
|
|
|
|
KEEP(*(.dtors))
|
|
|
|
PROVIDE(__dtors_end__ = .);
|
|
|
|
}
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
.data :
|
|
|
|
{
|
|
|
|
*(.data)
|
|
|
|
*(.data.*)
|
|
|
|
*(.gnu.linkonce.d*)
|
|
|
|
}
|
|
|
|
|
|
|
|
. = ALIGN(4);
|
|
|
|
.nobss : { *(.nobss) }
|
|
|
|
|
|
|
|
. = 0x30200000;
|
|
|
|
.mmu_table : { *(.mmu_table) }
|
|
|
|
|
|
|
|
. = 0x30300000;
|
|
|
|
. = ALIGN(4);
|
|
|
|
__bss_start = .;
|
|
|
|
.bss : { *(.bss) }
|
|
|
|
__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 = .;
|
|
|
|
}
|