mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 11:37:46 +00:00
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:
committed by
Ron Evans
parent
b1ec8eb2e0
commit
c7413837aa
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user