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.
Этот коммит содержится в:
Ayke van Laethem 2021-09-27 19:26:11 +02:00 коммит произвёл Ron Evans
родитель b1ec8eb2e0
коммит c7413837aa

Просмотреть файл

@ -58,7 +58,7 @@ SECTIONS
} }
/* For the memory allocator. */ /* For the memory allocator. */
_heap_start = _ebss; _heap_start = ALIGN(_ebss, 16);
_heap_end = ORIGIN(RAM) + LENGTH(RAM); _heap_end = ORIGIN(RAM) + LENGTH(RAM);
_globals_start = _sdata; _globals_start = _sdata;
_globals_end = _ebss; _globals_end = _ebss;