File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 BUILD_TYPE : Release
1111 BUILD_FLAGS : " -mcpu=cortex-m55 -mfloat-abi=hard -mfpu=fpv5-sp-d16"
1212 FLASH_ORIGIN : " 0x00000000"
13- FLASH_LENGTH : " 8192K "
13+ FLASH_LENGTH : " 16M "
1414 RAM_ORIGIN : " 0x20000000"
15- RAM_LENGTH : " 4096K "
15+ RAM_LENGTH : " 256M "
1616 STACK_SIZE : " 64K"
17- HEAP_SIZE : " 1024K "
17+ HEAP_SIZE : " 2048K "
1818
1919jobs :
2020 build :
@@ -71,11 +71,15 @@ jobs:
7171
7272 SECTIONS
7373 {
74+ .vectors : {
75+ KEEP(*(.vectors))
76+ } > FLASH
7477 .text :
7578 {
76- *(.vectors)
7779 *(.text*)
7880 *(.rodata*)
81+ . = ALIGN(4);
82+ _etext = .;
7983 } > FLASH
8084
8185 .ARM.exidx :
@@ -87,14 +91,14 @@ jobs:
8791 __exidx_end = .;
8892 } > FLASH
8993
90- .data :
94+ .data : AT (_etext)
9195 {
9296 . = ALIGN(4);
9397 __data_start__ = .;
9498 *(.data*)
9599 . = ALIGN(4);
96100 __data_end__ = .;
97- } > RAM AT > FLASH
101+ } > RAM
98102
99103 .bss :
100104 {
@@ -107,22 +111,27 @@ jobs:
107111 } > RAM
108112 PROVIDE(end = __bss_end__);
109113
110- .stack :
114+ .stack (NOLOAD) :
111115 {
112116 . = ALIGN(4);
113117 . = . + ${{ env.STACK_SIZE }};
114118 . = ALIGN(4);
115119 _estack = .;
116120 } > RAM
117121
118- .heap :
122+ .heap (NOLOAD) :
119123 {
120124 . = ALIGN(4);
121125 _sheap = .;
122126 . = . + ${{ env.HEAP_SIZE }};
123127 . = ALIGN(4);
124128 _eheap = .;
125129 } > RAM
130+
131+ /DISCARD/ : {
132+ *(.comment)
133+ *(.ARM.attributes)
134+ }
126135 }
127136 EOF
128137 cat ${{github.workspace}}/build/linker.ld
You can’t perform that action at this time.
0 commit comments