mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 01:39:44 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user