diff --git a/radio/src/targets/sky9x/sam3s2c_flash.ld b/radio/src/targets/sky9x/sam3s2c_flash.ld index 54dde2569..965328c0e 100644 --- a/radio/src/targets/sky9x/sam3s2c_flash.ld +++ b/radio/src/targets/sky9x/sam3s2c_flash.ld @@ -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 diff --git a/radio/src/targets/sky9x/sam3s4c_flash.ld b/radio/src/targets/sky9x/sam3s4c_flash.ld index 083dc52d9..743bcc97c 100644 --- a/radio/src/targets/sky9x/sam3s4c_flash.ld +++ b/radio/src/targets/sky9x/sam3s4c_flash.ld @@ -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 */ diff --git a/radio/src/targets/sky9x/sam3s8c_flash.ld b/radio/src/targets/sky9x/sam3s8c_flash.ld index ee9bdc22d..fa7227a9b 100644 --- a/radio/src/targets/sky9x/sam3s8c_flash.ld +++ b/radio/src/targets/sky9x/sam3s8c_flash.ld @@ -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 */