提交 08aa4e54 编写于 作者: G greedyhao

[bluetrum] update link.lds

上级 216285a2
/* Define the flash max size */
__max_flash_size = 768k;
__max_flash_size = 1024k;
__data_ram_size = 5k;
__data_ram_size = 8k;
__stack_ram_size = 4k;
__comm_ram_size = 86k;
__comm_ram_size = 83k;
__heap_ram_size = 29k;
__base = 0x10000000;
......@@ -34,13 +34,8 @@ SECTIONS
} > init
.ram1 __ram1_vma : {
*hal_drivers**.o(.text*)
*hal_libraries*ab32vg1_hal**.o(.text*)
*components*drivers**.o(.text* .rodata*)
*components*libc**.o(.text*)
*ab32vg1_hal_msp.o(.text*)
*components.o(.text* .rodata*)
*ipc.o(.text* .rodata*)
*device.o(.text*)
. = ALIGN(32);
} > ram1 AT > flash
......@@ -65,8 +60,14 @@ SECTIONS
} > ram1 AT > flash
.comm : {
KEEP(*(.vector))
EXCLUDE_FILE (*romfs.o *lib_a**.o) *(.text*)
KEEP (*(.vector))
EXCLUDE_FILE (*hal_drivers**.o *ab32vg1_hal**.o *components*finsh**.o *components*libc**.o *rt-thread*src**.o *kernel*src**.o *romfs.o *lib_a**.o) *(.text*)
*idle.o (.text*)
*ipc.o (.text*)
*irq.o (.text*)
*scheduler.o (.text*)
*timer.o (.text*)
*kservice.o (.text*)
EXCLUDE_FILE (*romfs.o *lib_a**.o) *(.rodata*)
*(.srodata*)
*(.rela*)
......@@ -75,12 +76,6 @@ SECTIONS
. = ALIGN(512);
} > comm AT > flash
.flash : {
*romfs.o *(.text* .rodata*)
*lib_a**.o *(.text* .rodata*)
. = ALIGN(512);
} > flash
.bss (NOLOAD):
{
__bss_start = .;
......@@ -99,11 +94,17 @@ SECTIONS
} > stack
__irq_stack_size = __irq_stack - __irq_stack_start;
.heap : {
.heap (NOLOAD) : {
__heap_start = .;
. = __heap_ram_size;
__heap_end = .;
} > heap
.flash : {
*(.text*)
*(.rodata*)
. = ALIGN(512);
} > flash
}
/* Calc the lma */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册