From 80e2a42d97f1e97185c66d8a5f3582cc5a74d90d Mon Sep 17 00:00:00 2001 From: Kalesh Singh Date: Thu, 8 Feb 2024 21:58:17 -0800 Subject: [PATCH] ANDROID: 16K: x86_64: Set ELF_EXEC_PAGESIZE to __PAGE_SIZE In page-compat mode, set ELF_EXEC_PAGESIZE to the emulated page size. This is the page size used by the kernel to determine the alignment for ELF loading; and is what the kernel presents to userspace via the auxillary vector. Bug: 383389337 Bug: 315325080 Bug: 302403436 Change-Id: I4ea69a5d5cfc68760cff503019b4a4f44a333f23 Signed-off-by: Kalesh Singh --- arch/x86/include/asm/elf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/elf.h b/arch/x86/include/asm/elf.h index 1fb83d47711f..b82a38c3838a 100644 --- a/arch/x86/include/asm/elf.h +++ b/arch/x86/include/asm/elf.h @@ -5,6 +5,7 @@ /* * ELF register definitions.. */ +#include #include #include @@ -228,7 +229,7 @@ extern int force_personality32; #endif /* !CONFIG_X86_32 */ #define CORE_DUMP_USE_REGSET -#define ELF_EXEC_PAGESIZE 4096 +#define ELF_EXEC_PAGESIZE __PAGE_SIZE /* * This is the base location for PIE (ET_DYN with INTERP) loads. On