Explorar el Código

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

guozhanxin hace 2 días
padre
commit
047ab1eca4
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  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
     } > CODE = 0
 
 
     /* .ARM.exidx is sorted, so has to go in its own output section.  */
     /* .ARM.exidx is sorted, so has to go in its own output section.  */
+    .ARM.extab   : { *(.ARM.extab* .gnu.linkonce.armextab.*) } > CODE
     __exidx_start = .;
     __exidx_start = .;
     .ARM.exidx :
     .ARM.exidx :
     {
     {
@@ -102,7 +103,7 @@ SECTIONS
         _edata = . ;
         _edata = . ;
     } >RAM1
     } >RAM1
 
 
-    .stack :
+    .stack (NOLOAD):
     {
     {
         . = ALIGN(4);
         . = ALIGN(4);
         _sstack = .;
         _sstack = .;
@@ -112,7 +113,7 @@ SECTIONS
     } >RAM1
     } >RAM1
 
 
     __bss_start = .;
     __bss_start = .;
-    .bss :
+    .bss (NOLOAD):
     {
     {
         . = ALIGN(4);
         . = ALIGN(4);
         /* This is used by the startup in order to initialize the .bss secion */
         /* This is used by the startup in order to initialize the .bss secion */