stm32h7: set 8-byte alignment on main and irq stack

Explicitly set 8-byte alignment as per the AAPCS, which
says the stack should be 8-byte aligned at a public ABI
boundary.

Change-Id: Ie60b664718119ea576e7c6b5efaac011eb907531
This commit is contained in:
Aidan MacDonald 2026-01-25 22:26:53 +00:00
parent e1d10c938a
commit 2b09078b92
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ SECTIONS
*(.icode*);
} > ITCM
.stack (NOLOAD) :
.stack (NOLOAD) : ALIGN(8)
{
irqstackbegin = .;
. += 0x400;

View file

@ -42,7 +42,7 @@ SECTIONS
_bssend = .;
} > SRAM_AXI
.stack (NOLOAD) : ALIGN(4)
.stack (NOLOAD) : ALIGN(8)
{
irqstackbegin = .;
. += 0x400;