1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Revert "Clean up linker script"

This commit is contained in:
Michael Keller 2020-09-22 00:05:51 +12:00 committed by GitHub
parent 41ea150ff8
commit 4261f0499d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ SECTIONS
PROVIDE (isr_vector_table_base = .); PROVIDE (isr_vector_table_base = .);
KEEP(*(.isr_vector)) /* Startup code */ KEEP(*(.isr_vector)) /* Startup code */
. = ALIGN(4); . = ALIGN(4);
} >FLASH } >FLASH AT >AXIM_FLASH
/* The program code and other data goes into FLASH */ /* The program code and other data goes into FLASH */
.text : .text :
@ -51,7 +51,7 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
_etext = .; /* define a global symbols at end of code */ _etext = .; /* define a global symbols at end of code */
} >FLASH1 } >FLASH1 AT >AXIM_FLASH1
/* Critical program code goes into ITCM RAM */ /* Critical program code goes into ITCM RAM */
/* Copy specific fast-executing code to ITCM RAM */ /* Copy specific fast-executing code to ITCM RAM */
@ -64,7 +64,7 @@ SECTIONS
*(.tcm_code*) *(.tcm_code*)
. = ALIGN(4); . = ALIGN(4);
tcm_code_end = .; tcm_code_end = .;
} >ITCM_RAM AT >FLASH1 } >ITCM_RAM AT >AXIM_FLASH1
.ARM.extab : .ARM.extab :
{ {
@ -75,7 +75,7 @@ SECTIONS
{ {
__exidx_start = .; __exidx_start = .;
*(.ARM.exidx*) __exidx_end = .; *(.ARM.exidx*) __exidx_end = .;
} >FLASH } >FLASH AT >AXIM_FLASH
.pg_registry : .pg_registry :
{ {
@ -83,14 +83,14 @@ SECTIONS
KEEP (*(.pg_registry)) KEEP (*(.pg_registry))
KEEP (*(SORT(.pg_registry.*))) KEEP (*(SORT(.pg_registry.*)))
PROVIDE_HIDDEN (__pg_registry_end = .); PROVIDE_HIDDEN (__pg_registry_end = .);
} >FLASH } >FLASH AT >AXIM_FLASH
.pg_resetdata : .pg_resetdata :
{ {
PROVIDE_HIDDEN (__pg_resetdata_start = .); PROVIDE_HIDDEN (__pg_resetdata_start = .);
KEEP (*(.pg_resetdata)) KEEP (*(.pg_resetdata))
PROVIDE_HIDDEN (__pg_resetdata_end = .); PROVIDE_HIDDEN (__pg_resetdata_end = .);
} >FLASH } >FLASH AT >AXIM_FLASH
/* Storage for the address for the configuration section so we can grab it out of the hex file */ /* Storage for the address for the configuration section so we can grab it out of the hex file */
.custom_defaults : .custom_defaults :
@ -120,13 +120,13 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
_edata = .; /* define a global symbol at data end */ _edata = .; /* define a global symbol at data end */
} >RAM AT >FLASH } >RAM AT >AXIM_FLASH
/* Uninitialized data section */ /* Uninitialized data section */
. = ALIGN(4); . = ALIGN(4);
.bss (NOLOAD) : .bss (NOLOAD) :
{ {
/* This is used by the startup in order to initialize the .bss section */ /* This is used by the startup in order to initialize the .bss secion */
_sbss = .; /* define a global symbol at bss start */ _sbss = .; /* define a global symbol at bss start */
__bss_start__ = _sbss; __bss_start__ = _sbss;
*(.bss) *(.bss)
@ -142,7 +142,7 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
.sram2 (NOLOAD) : .sram2 (NOLOAD) :
{ {
/* This is used by the startup in order to initialize the .sram2 section */ /* This is used by the startup in order to initialize the .sram2 secion */
_ssram2 = .; /* define a global symbol at sram2 start */ _ssram2 = .; /* define a global symbol at sram2 start */
__sram2_start__ = _ssram2; __sram2_start__ = _ssram2;
*(.sram2) *(.sram2)
@ -166,7 +166,7 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
_efastram_data = .; /* define a global symbol at data end */ _efastram_data = .; /* define a global symbol at data end */
} >FASTRAM AT >FLASH } >FASTRAM AT >AXIM_FLASH
. = ALIGN(4); . = ALIGN(4);
.fastram_bss (NOLOAD) : .fastram_bss (NOLOAD) :