mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2026-08-15 05:18:32 +00:00
For conveniency, stack_bottom points to the end of the stack region in the
linker file as it grows backwards on arm:
.stack ALIGN(0x1000) : {
__stack_top = .;
. += 0x1000;
__stack_bottom = .;
}
However, we have somehow missed that and STILL made sp point to __stack_top,
which makes it grow backwards into .bss... oops, lol. Tested on qemu-virt set
to use cortex-a15.