Fix Atmel ARM Linker script for gcc 5.4.1 (#3982)

Copy .init and .fni section over from the STM32 linker scripts to make targets like AR9X buildable again. Tested by @sreichholf on a AR9X board
This commit is contained in:
Arne Schwabe
2016-11-02 16:20:49 +01:00
committed by Bertrand Songis
parent b22bd1f315
commit dfc81cecad
3 changed files with 11 additions and 2 deletions
+3
View File
@@ -87,6 +87,9 @@ SECTIONS
*(.rodata) *(.rodata)
*(.rodata.*) *(.rodata.*)
KEEP (*(.init))
KEEP (*(.fini))
. = ALIGN(4); /* Align the end of the section */ . = ALIGN(4); /* Align the end of the section */
} > FLASH = 0 } > FLASH = 0
_etext = .; /* Provide the name for the end of this section */ _etext = .; /* Provide the name for the end of this section */
+3
View File
@@ -94,6 +94,9 @@ SECTIONS
*(.rodata) *(.rodata)
*(.rodata.*) *(.rodata.*)
KEEP (*(.init))
KEEP (*(.fini))
. = ALIGN(4); /* Align the end of the section */ . = ALIGN(4); /* Align the end of the section */
} > FLASH = 0 } > FLASH = 0
_etext = .; /* Provide the name for the end of this section */ _etext = .; /* Provide the name for the end of this section */
+3
View File
@@ -93,6 +93,9 @@ SECTIONS
*(.rodata) *(.rodata)
*(.rodata.*) *(.rodata.*)
KEEP (*(.init))
KEEP (*(.fini))
. = ALIGN(4); /* Align the end of the section */ . = ALIGN(4); /* Align the end of the section */
} > FLASH = 0 } > FLASH = 0
_etext = .; /* Provide the name for the end of this section */ _etext = .; /* Provide the name for the end of this section */