diff --git a/arch/arm/src/armv7-a/arm_vectortab.S b/arch/arm/src/armv7-a/arm_vectortab.S index 62e03f2e55..39528d5c08 100644 --- a/arch/arm/src/armv7-a/arm_vectortab.S +++ b/arch/arm/src/armv7-a/arm_vectortab.S @@ -34,6 +34,10 @@ * Public Symbols ****************************************************************************/ +#ifdef CONFIG_ARM_TOOLCHAIN_ARMCLANG + .eabi_attribute Tag_ABI_align_preserved, 1 +#endif + .globl _vector_start .globl _vector_end diff --git a/arch/arm/src/armv7-r/arm_vectortab.S b/arch/arm/src/armv7-r/arm_vectortab.S index 6c475089f0..41db3f67e8 100644 --- a/arch/arm/src/armv7-r/arm_vectortab.S +++ b/arch/arm/src/armv7-r/arm_vectortab.S @@ -34,6 +34,10 @@ * Public Symbols ****************************************************************************/ +#ifdef CONFIG_ARM_TOOLCHAIN_ARMCLANG + .eabi_attribute Tag_ABI_align_preserved, 1 +#endif + .globl _vector_start .globl _vector_end