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
@@ -86,6 +86,9 @@ SECTIONS
. = ALIGN(4); /* Align the start of the rodata part */
*(.rodata)
*(.rodata.*)
KEEP (*(.init))
KEEP (*(.fini))
. = ALIGN(4); /* Align the end of the section */
} > FLASH = 0
+4 -1
View File
@@ -93,7 +93,10 @@ SECTIONS
. = ALIGN(4); /* Align the start of the rodata part */
*(.rodata)
*(.rodata.*)
KEEP (*(.init))
KEEP (*(.fini))
. = ALIGN(4); /* Align the end of the section */
} > FLASH = 0
_etext = .; /* Provide the name for the end of this section */
+4 -1
View File
@@ -92,7 +92,10 @@ SECTIONS
. = ALIGN(4); /* Align the start of the rodata part */
*(.rodata)
*(.rodata.*)
KEEP (*(.init))
KEEP (*(.fini))
. = ALIGN(4); /* Align the end of the section */
} > FLASH = 0
_etext = .; /* Provide the name for the end of this section */