mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2025-01-08 13:33:01 -06:00
Set stack alignment to 16 bytes.
This needs to be done in the ldscripts.
This commit is contained in:
parent
1888f5c611
commit
e37fbbd429
@ -585,7 +585,7 @@ startup_stack_top:
|
||||
# Main stack area.
|
||||
|
||||
.section "stacks", "aw", @progbits
|
||||
.align 256
|
||||
.align 16
|
||||
|
||||
. = . + STACKS_SIZE
|
||||
|
||||
|
@ -621,7 +621,7 @@ startup_stack_top:
|
||||
# Main stack area.
|
||||
|
||||
.section ".stacks", "aw", @nobits
|
||||
.align 256
|
||||
.align 16
|
||||
|
||||
. = . + STACKS_SIZE
|
||||
|
||||
|
@ -45,6 +45,7 @@ SECTIONS {
|
||||
*(.bss)
|
||||
*(.bss.*)
|
||||
*(COMMON)
|
||||
. = ALIGN(16);
|
||||
_stacks = .;
|
||||
*(.stacks)
|
||||
/* _end must be at least 256 byte aligned */
|
||||
|
@ -45,6 +45,7 @@ SECTIONS {
|
||||
*(.bss)
|
||||
*(.bss.*)
|
||||
*(COMMON)
|
||||
. = ALIGN(16);
|
||||
_stacks = .;
|
||||
*(.stacks)
|
||||
/* _end must be at least 256 byte aligned */
|
||||
|
Loading…
Reference in New Issue
Block a user