From f2e2b6621538dbbc1ee55d418566c8e5fd02d08f Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Mon, 10 Feb 2020 15:46:10 +0900 Subject: [PATCH] arch: arm: aarch64: Fix _vector_end symbol placement This commit relocates the `_vector_end` symbol that was previously placed after the OpenOCD sections to before these sections, as the OpenOCD debug sections are not part of the "vector table." Signed-off-by: Stephanos Ioannidis --- include/arch/arm/aarch64/scripts/linker.ld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/arch/arm/aarch64/scripts/linker.ld b/include/arch/arm/aarch64/scripts/linker.ld index a1718cdcdd3..c3c74d4ec7b 100644 --- a/include/arch/arm/aarch64/scripts/linker.ld +++ b/include/arch/arm/aarch64/scripts/linker.ld @@ -132,10 +132,10 @@ SECTIONS KEEP(*(.vectors)) + _vector_end = .; + KEEP(*(.openocd_dbg)) KEEP(*(".openocd_dbg.*")) - - _vector_end = .; } GROUP_LINK_IN(ROMABLE_REGION) #ifdef CONFIG_CODE_DATA_RELOCATION