riscv: align the heap to 16 bytes

This may be expected by the ABI. In particular, it means that stacks
allocated on the heap will be 16-byte aligned.
This commit is contained in:
Ayke van Laethem
2021-09-27 19:26:11 +02:00
committed by Ron Evans
parent b1ec8eb2e0
commit c7413837aa
+1 -1
View File
@@ -58,7 +58,7 @@ SECTIONS
}
/* For the memory allocator. */
_heap_start = _ebss;
_heap_start = ALIGN(_ebss, 16);
_heap_end = ORIGIN(RAM) + LENGTH(RAM);
_globals_start = _sdata;
_globals_end = _ebss;