diff --git a/arch/arm/src/armv7-a/arm_vectortab.S b/arch/arm/src/armv7-a/arm_vectortab.S index e01ae13b74..b22261e04a 100644 --- a/arch/arm/src/armv7-a/arm_vectortab.S +++ b/arch/arm/src/armv7-a/arm_vectortab.S @@ -58,7 +58,8 @@ * Vector initialization block ****************************************************************************/ - .globl _vector_start + .section .vectors, "ax" + .globl _vector_start /* These will be relocated to VECTOR_BASE. */ diff --git a/configs/sama5d3x-ek/scripts/ddram.ld b/configs/sama5d3x-ek/scripts/ddram.ld index fcc213f618..5aa3bda060 100644 --- a/configs/sama5d3x-ek/scripts/ddram.ld +++ b/configs/sama5d3x-ek/scripts/ddram.ld @@ -56,7 +56,7 @@ SECTIONS { .text : { _stext = ABSOLUTE(.); - *(.vectors) + KEEP (*(.vectors)) *(.text .text.*) *(.fixup) *(.gnu.warning) diff --git a/configs/sama5d3x-ek/scripts/isram.ld b/configs/sama5d3x-ek/scripts/isram.ld index 035fd57470..aeb1668b74 100644 --- a/configs/sama5d3x-ek/scripts/isram.ld +++ b/configs/sama5d3x-ek/scripts/isram.ld @@ -53,7 +53,7 @@ SECTIONS { .text : { _stext = ABSOLUTE(.); - *(.vectors) + KEEP (*(.vectors)) *(.text .text.*) *(.fixup) *(.gnu.warning) diff --git a/configs/sama5d3x-ek/scripts/pg-sram.ld b/configs/sama5d3x-ek/scripts/pg-sram.ld index 6cf0591a2c..ea2eb026ec 100644 --- a/configs/sama5d3x-ek/scripts/pg-sram.ld +++ b/configs/sama5d3x-ek/scripts/pg-sram.ld @@ -81,7 +81,7 @@ SECTIONS { .locked : { _slocked = ABSOLUTE(.); - *(.vectors) + KEEP (*(.vectors)) up_head.o locked.r (.text .text.*) up_head.o locked.r (.fixup) up_head.o locked.r (.gnu.warning)