mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2025-02-25 18:55:23 -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.
|
# Main stack area.
|
||||||
|
|
||||||
.section "stacks", "aw", @progbits
|
.section "stacks", "aw", @progbits
|
||||||
.align 256
|
.align 16
|
||||||
|
|
||||||
. = . + STACKS_SIZE
|
. = . + STACKS_SIZE
|
||||||
|
|
||||||
|
@ -621,7 +621,7 @@ startup_stack_top:
|
|||||||
# Main stack area.
|
# Main stack area.
|
||||||
|
|
||||||
.section ".stacks", "aw", @nobits
|
.section ".stacks", "aw", @nobits
|
||||||
.align 256
|
.align 16
|
||||||
|
|
||||||
. = . + STACKS_SIZE
|
. = . + STACKS_SIZE
|
||||||
|
|
||||||
|
@ -45,6 +45,7 @@ SECTIONS {
|
|||||||
*(.bss)
|
*(.bss)
|
||||||
*(.bss.*)
|
*(.bss.*)
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
|
. = ALIGN(16);
|
||||||
_stacks = .;
|
_stacks = .;
|
||||||
*(.stacks)
|
*(.stacks)
|
||||||
/* _end must be at least 256 byte aligned */
|
/* _end must be at least 256 byte aligned */
|
||||||
|
@ -45,6 +45,7 @@ SECTIONS {
|
|||||||
*(.bss)
|
*(.bss)
|
||||||
*(.bss.*)
|
*(.bss.*)
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
|
. = ALIGN(16);
|
||||||
_stacks = .;
|
_stacks = .;
|
||||||
*(.stacks)
|
*(.stacks)
|
||||||
/* _end must be at least 256 byte aligned */
|
/* _end must be at least 256 byte aligned */
|
||||||
|
Loading…
Reference in New Issue
Block a user