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:
committed by
Bertrand Songis
parent
b22bd1f315
commit
dfc81cecad
@@ -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 */
|
||||||
|
|||||||
@@ -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 */
|
||||||
|
|||||||
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user