asm: .eabi_attribute Tag_ABI_align_preserved, 1

Tell armlink that files has ensured proper stack alignment.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
Torsten Rasmussen 2021-04-20 13:53:55 +02:00 committed by Anas Nashif
commit da926f6855
2 changed files with 8 additions and 0 deletions

View file

@ -22,6 +22,10 @@
#include "vector_table.h" #include "vector_table.h"
_ASM_FILE_PROLOGUE _ASM_FILE_PROLOGUE
/*
* Tell armclang that stack alignment are ensured.
*/
.eabi_attribute Tag_ABI_align_preserved, 1
GDATA(z_main_stack) GDATA(z_main_stack)

View file

@ -12,6 +12,10 @@
* Wrapper installed in vector table for handling dynamic interrupts that accept * Wrapper installed in vector table for handling dynamic interrupts that accept
* a parameter. * a parameter.
*/ */
/*
* Tell armclang that stack alignment are ensured.
*/
.eabi_attribute Tag_ABI_align_preserved, 1
#include <toolchain.h> #include <toolchain.h>
#include <linker/sections.h> #include <linker/sections.h>