Browse Source

[bsp][stm32]完善星火1号链接脚本

guozhanxin 1 day ago
parent
commit
047ab1eca4
1 changed files with 3 additions and 2 deletions
  1. 3 2
      bsp/stm32/stm32f407-rt-spark/board/linker_scripts/link.lds

+ 3 - 2
bsp/stm32/stm32f407-rt-spark/board/linker_scripts/link.lds

@@ -70,6 +70,7 @@ SECTIONS
     } > CODE = 0
 
     /* .ARM.exidx is sorted, so has to go in its own output section.  */
+    .ARM.extab   : { *(.ARM.extab* .gnu.linkonce.armextab.*) } > CODE
     __exidx_start = .;
     .ARM.exidx :
     {
@@ -102,7 +103,7 @@ SECTIONS
         _edata = . ;
     } >RAM1
 
-    .stack :
+    .stack (NOLOAD):
     {
         . = ALIGN(4);
         _sstack = .;
@@ -112,7 +113,7 @@ SECTIONS
     } >RAM1
 
     __bss_start = .;
-    .bss :
+    .bss (NOLOAD):
     {
         . = ALIGN(4);
         /* This is used by the startup in order to initialize the .bss secion */