[bsp][bluetrum] add cpp support

This commit is contained in:
greedyhao 2021-01-20 19:28:35 +08:00
parent 7d0155eeaa
commit 52f547f56a
1 changed files with 24 additions and 7 deletions

View File

@ -34,9 +34,17 @@ SECTIONS
} > init } > init
.ram1 __ram1_vma : { .ram1 __ram1_vma : {
*components*drivers**.o(.text* .rodata*) . = ALIGN(4);
*device.o(.text*) PROVIDE(__ctors_start__ = .);
. = ALIGN(32); KEEP (*(SORT(.init_array.*)))
KEEP (*(.init_array))
PROVIDE(__ctors_end__ = .);
. = ALIGN(4);
*components*drivers**.o (.text*)
*device.o (.text*)
*components.o (.text*)
*idle.o (.text*)
} > ram1 AT > flash } > ram1 AT > flash
.rti : { .rti : {
@ -60,15 +68,23 @@ SECTIONS
} > ram1 AT > flash } > ram1 AT > flash
.comm : { .comm : {
. = ALIGN(4);
KEEP(*(.vector)) KEEP(*(.vector))
EXCLUDE_FILE(*components*finsh**.o *components*libc**.o *romfs.o *lib_a**.o) *(.text*) EXCLUDE_FILE(*components*finsh**.o *components*libc**.o *romfs.o
*lib_a**.o *divdi3.o *moddi3.o *divdf3.o *muldf3.o *eqtf2.o *getf2.o
*letf2.o *multf3.o *subtf3.o *fixtfsi.o *floatsitf.o *extenddftf2.o
*trunctfdf2.o *_clzsi2.o *cp-demangle.o *unwind*.o) *(.text)
*finsh*shell.o (.text*) *finsh*shell.o (.text*)
EXCLUDE_FILE (*components*libc**.o *romfs.o *lib_a**.o) *(.rodata*) *(.text.unlikely)
*(.srodata*) *(.text.startup)
EXCLUDE_FILE (*components*libc**.o *romfs.o *lib_a**.o *cp-demangle.o
*divdf3.o *muldf3.o *multf3.o *unwind*.o *_clz.o) *(.rodata)
*(.rodata.name)
EXCLUDE_FILE(*lib_a**.o *cp-demangle.o) *(.rodata.str1.4)
EXCLUDE_FILE(*lib_a**.o *unwind*.o) *(.srodata)
*(.rela*) *(.rela*)
*(.data*) *(.data*)
*(.sdata*) *(.sdata*)
. = ALIGN(512);
} > comm AT > flash } > comm AT > flash
.bss (NOLOAD): .bss (NOLOAD):
@ -98,6 +114,7 @@ SECTIONS
.flash : { .flash : {
*(.text*) *(.text*)
*(.rodata*) *(.rodata*)
*(.srodata*)
. = ALIGN(512); . = ALIGN(512);
} > flash } > flash
} }