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:
parent
d4a0abec82
commit
1b369544ca
2 changed files with 5 additions and 2 deletions
|
|
@ -113,7 +113,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_BUILD_KERNEL
|
#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
|
#else
|
||||||
# define ARCH_DATA_RESERVE_SIZE 0
|
# define ARCH_DATA_RESERVE_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,8 @@
|
||||||
# include <nuttx/addrenv.h>
|
# include <nuttx/addrenv.h>
|
||||||
|
|
||||||
# define TEXT CONFIG_ARCH_TEXT_VBASE
|
# 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
|
#else
|
||||||
# define TEXT 0x0
|
# define TEXT 0x0
|
||||||
# define DATA
|
# define DATA
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue