modlib/gnu-elf.ld.in: fix regression with armv7a

As armv7-a addrenv layout is not in line with other archs, we need
align it with others by defining ARCH_DATA_RESERVE_SIZE as same as
MM_PGSIZE for now to keep gnu-elf.ld.in unified.

Signed-off-by: Yanfeng Liu <p-liuyanfeng9@xiaomi.com>
This commit is contained in:
Yanfeng Liu 2025-01-17 16:01:07 +08:00 committed by Xiang Xiao
parent d4a0abec82
commit 1b369544ca
2 changed files with 5 additions and 2 deletions

View file

@ -113,7 +113,9 @@
*/
#ifdef CONFIG_BUILD_KERNEL
# define ARCH_DATA_RESERVE_SIZE 512
/* use MM_PGSIZE to unify among all archs for now */
# define ARCH_DATA_RESERVE_SIZE CONFIG_MM_PGSIZE
#else
# define ARCH_DATA_RESERVE_SIZE 0
#endif

View file

@ -26,7 +26,8 @@
# include <nuttx/addrenv.h>
# define TEXT CONFIG_ARCH_TEXT_VBASE
# define DATA CONFIG_ARCH_DATA_VBASE + CONFIG_MM_PGSIZE
# define DATA CONFIG_ARCH_DATA_VBASE + ARCH_DATA_RESERVE_SIZE
#else
# define TEXT 0x0
# define DATA