arch/armv7-r: Fix armclang build warning: L6306W

When a function is known to preserve eight-byte alignment of the stack, armclang assigns the build
attribute Tag_ABI_align_preserved to that function. However, the armclang integrated assembler does
not automatically assign this attribute to assembly code.

Signed-off-by: xiangdong6 <xiangdong6@xiaomi.com>
This commit is contained in:
xiangdong6 2022-10-20 18:50:15 +08:00 committed by Xiang Xiao
parent ae8ea29379
commit 924c3d8b5f
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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