mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 04:16:35 +08:00
modlib:gen-elf.ld.in DATA section need add CONFIG_MM_PGSIZE
arch/risc-v/src/common/riscv_addrenv.c:418:
{
...
database = resvbase + MM_PGALIGNUP(resvsize);
...
}
need use MM_PGALIGNUP(resvsize) inside of ARCH_DATA_RESERVE_SIZE
if not add MM_PGALIGNUP(resvsize), will mismatch address load .data
section
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
# include <nuttx/addrenv.h>
|
||||
|
||||
# define TEXT CONFIG_ARCH_TEXT_VBASE
|
||||
# define DATA CONFIG_ARCH_DATA_VBASE + ARCH_DATA_RESERVE_SIZE
|
||||
# define DATA CONFIG_ARCH_DATA_VBASE + CONFIG_MM_PGSIZE
|
||||
#else
|
||||
# define TEXT 0x0
|
||||
# define DATA
|
||||
|
||||
Reference in New Issue
Block a user