Skip to content

Commit da926f6

Browse files
tejlmandnashif
authored andcommitted
asm: .eabi_attribute Tag_ABI_align_preserved, 1
Tell armlink that files has ensured proper stack alignment. Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent c9804d2 commit da926f6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

arch/arm/core/aarch32/cortex_m/vector_table.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
#include "vector_table.h"
2323

2424
_ASM_FILE_PROLOGUE
25+
/*
26+
* Tell armclang that stack alignment are ensured.
27+
*/
28+
.eabi_attribute Tag_ABI_align_preserved, 1
2529

2630
GDATA(z_main_stack)
2731

arch/arm/core/aarch32/isr_wrapper.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
* Wrapper installed in vector table for handling dynamic interrupts that accept
1313
* a parameter.
1414
*/
15+
/*
16+
* Tell armclang that stack alignment are ensured.
17+
*/
18+
.eabi_attribute Tag_ABI_align_preserved, 1
1519

1620
#include <toolchain.h>
1721
#include <linker/sections.h>

0 commit comments

Comments
 (0)