1 Star 0 Fork 34

gitesin/F1C100S_MDK

forked from LicheePiNano/F1C100S_MDK 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
f1c100s.ld 4.01 KB
一键复制 编辑 原始数据 按行查看 历史
RobotFly 提交于 2020-07-03 10:25 . 初试版本,裸机F1C100S 适配Nano
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(_start)
STACK_UND_SIZE = 0x10000;
STACK_ABT_SIZE = 0x10000;
STACK_IRQ_SIZE = 0x10000;
STACK_FIQ_SIZE = 0x10000;
STACK_SRV_SIZE = 0x40000;
MEMORY
{
ram : org = 0x80000000, len = 8M
dma : org = 0x80800000, len = 8M
heap : org = 0x81000000, len = 16M
}
SECTIONS
{
.bootloader :
{
PROVIDE(__bootloader_start = .);
PROVIDE(__image_start = .);
PROVIDE(__text_start = .);
Objects\start.o (.text)
Objects\memcpy.o (.text)
Objects\memset.o (.text)
Objects\sys-uart.o (.text)
Objects\sys-clock.o (.text)
Objects\sys-dram.o (.text)
Objects\sys-mmu.o (.text)
Objects\sys-spi-flash.o (.text)
Objects\sys-copyself.o (.text)
PROVIDE(__bootloader_end = .);
} > ram
__bootloader_size = SIZEOF(.bootloader);
.text :
{
Objects\main.o (.text)
*(.text*)
*(.init.text)
*(.exit.text)
*(.glue*)
*(.note.gnu.build-id)
PROVIDE(__text_end = .);
} > ram
.initcall ALIGN(8) :
{
PROVIDE(__initcall_start = .);
KEEP(*(.initcall_0.text))
KEEP(*(.initcall_1.text))
KEEP(*(.initcall_2.text))
KEEP(*(.initcall_3.text))
KEEP(*(.initcall_4.text))
KEEP(*(.initcall_5.text))
KEEP(*(.initcall_6.text))
KEEP(*(.initcall_7.text))
KEEP(*(.initcall_8.text))
KEEP(*(.initcall_9.text))
PROVIDE(__initcall_end = .);
} > ram
.exitcall ALIGN(8) :
{
PROVIDE(__exitcall_start = .);
KEEP(*(.exitcall_9.text))
KEEP(*(.exitcall_8.text))
KEEP(*(.exitcall_7.text))
KEEP(*(.exitcall_6.text))
KEEP(*(.exitcall_5.text))
KEEP(*(.exitcall_4.text))
KEEP(*(.exitcall_3.text))
KEEP(*(.exitcall_2.text))
KEEP(*(.exitcall_1.text))
KEEP(*(.exitcall_0.text))
PROVIDE(__exitcall_end = .);
} > ram
.ksymtab ALIGN(8) :
{
PROVIDE(__ksymtab_start = .);
KEEP(*(.ksymtab.text))
PROVIDE(__ksymtab_end = .);
} > ram
.romdisk ALIGN(8) :
{
PROVIDE(__romdisk_start = .);
KEEP(*(.romdisk))
PROVIDE(__romdisk_end = .);
} > ram
.rodata ALIGN(8) :
{
PROVIDE(__rodata_start = .);
*(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
PROVIDE(__rodata_end = .);
} > ram
.data_shadow ALIGN(8) :
{
PROVIDE(__data_shadow_start = .);
PROVIDE(__data_shadow_end = (. + SIZEOF(.data)));
PROVIDE(__image_end = __data_shadow_end);
} > ram
.data : AT(ADDR(.data_shadow))
{
PROVIDE(__data_start = .);
*(.data*)
. = ALIGN(8);
PROVIDE(__data_end = .);
} > ram
.ARM.exidx ALIGN(8) :
{
PROVIDE (__exidx_start = .);
*(.ARM.exidx*)
PROVIDE (__exidx_end = .);
} > ram
.ARM.extab ALIGN(8) :
{
PROVIDE (__extab_start = .);
*(.ARM.extab*)
PROVIDE (__extab_end = .);
} > ram
.bss ALIGN(8) (NOLOAD) :
{
PROVIDE(__bss_start = .);
*(.bss*)
*(.sbss*)
*(COMMON)
. = ALIGN(8);
PROVIDE(__bss_end = .);
} > ram
.stack ALIGN(8) (NOLOAD) :
{
PROVIDE(__stack_start = .);
PROVIDE(__stack_und_start = .);
. += STACK_UND_SIZE;
PROVIDE(__stack_und_end = .);
. = ALIGN(8);
PROVIDE(__stack_abt_start = .);
. += STACK_ABT_SIZE;
PROVIDE(__stack_abt_end = .);
. = ALIGN(8);
PROVIDE(__stack_irq_start = .);
. += STACK_IRQ_SIZE;
PROVIDE(__stack_irq_end = .);
. = ALIGN(8);
PROVIDE(__stack_fiq_start = .);
. += STACK_FIQ_SIZE;
PROVIDE(__stack_fiq_end = .);
. = ALIGN(8);
PROVIDE(__stack_srv_start = .);
. += STACK_SRV_SIZE;
PROVIDE(__stack_srv_end = .);
. = ALIGN(8);
PROVIDE(__stack_end = .);
} > ram
.dma ALIGN(8) (NOLOAD) :
{
PROVIDE(__dma_start = ORIGIN(dma));
PROVIDE(__dma_end = ORIGIN(dma) + LENGTH(dma));
} > dma
.heap ALIGN(8) (NOLOAD) :
{
PROVIDE(__heap_start = ORIGIN(heap));
PROVIDE(__heap_end = ORIGIN(heap) + LENGTH(heap));
} > heap
.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) }
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gitesin/F1C100S_MDK.git
git@gitee.com:gitesin/F1C100S_MDK.git
gitesin
F1C100S_MDK
F1C100S_MDK
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385