summaryrefslogtreecommitdiff
path: root/bsp/bluetrum
diff options
context:
space:
mode:
authorgreedyhao <[email protected]>2021-01-27 14:37:57 +0800
committergreedyhao <[email protected]>2021-01-27 14:37:57 +0800
commitcd15ffedfe9e513abb6167beab81cf418463fa51 (patch)
treeb081324f23b972b8019cb517f8205554d498e7dc /bsp/bluetrum
parent76dbf1936de828652a15e0ed473c1c5972c8d41f (diff)
[bsp][bluetrum] update link.lds
Diffstat (limited to 'bsp/bluetrum')
-rw-r--r--bsp/bluetrum/ab32vg1-ab-prougen/link.lds31
1 files changed, 14 insertions, 17 deletions
diff --git a/bsp/bluetrum/ab32vg1-ab-prougen/link.lds b/bsp/bluetrum/ab32vg1-ab-prougen/link.lds
index 5bb21345ff..80a2242e13 100644
--- a/bsp/bluetrum/ab32vg1-ab-prougen/link.lds
+++ b/bsp/bluetrum/ab32vg1-ab-prougen/link.lds
@@ -35,20 +35,6 @@ SECTIONS
.ram1 __ram1_vma : {
. = ALIGN(4);
- PROVIDE(__ctors_start__ = .);
- 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
-
- .rti : {
- . = ALIGN(4);
/* section information for initial */
__rt_init_start = .;
KEEP(*(SORT(.rti_fn*)))
@@ -64,10 +50,21 @@ SECTIONS
KEEP(*(VSymTab))
__vsymtab_end = .;
- . = ALIGN(32);
+ . = ALIGN(4);
+ PROVIDE(__ctors_start__ = .);
+ KEEP (*(SORT(.init_array.*)))
+ KEEP (*(.init_array))
+ PROVIDE(__ctors_end__ = .);
+
+ . = ALIGN(4);
+ *components*drivers**.o (.text*)
+ *components.o (.text*)
+ *idle.o (.text*)
+ *object.o (.text*)
+ *scheduler.o (.text*)
} > ram1 AT > flash
- .comm : {
+ .comm __comm_vma : {
. = ALIGN(4);
KEEP(*(.vector))
EXCLUDE_FILE(*components*finsh**.o *components*libc**.o *dfs*filesystems**.o
@@ -124,4 +121,4 @@ __bank_size = SIZEOF(.flash);
__comm_lma = LOADADDR(.comm);
__comm_size = SIZEOF(.comm);
__ram1_lma = LOADADDR(.ram1);
-__ram1_size = SIZEOF(.ram1) + SIZEOF(.rti);
+__ram1_size = SIZEOF(.ram1);