Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4ace31b authored by Evgenii Stepanov's avatar Evgenii Stepanov Committed by Greg Hackmann
Browse files

ANDROID: Revert "arm64: move ELF_ET_DYN_BASE to 4GB / 4MB"



Part of the above change was reverted in 240628085effc47e86f51fc3fb37bc0e628f9a85;
this change reverts the rest.

This ARM mmap change breaks AddressSanitizer:

Shadow memory range interleaves with an existing memory mapping. ASan cannot proceed correctly. ABORTING.

Revert it until ASAN runtime library is updated to handle it.

Bug: 67425063

Signed-off-by: default avatarEvgenii Stepanov <eugenis@google.com>
parent 089ea432
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -169,7 +169,7 @@ extern int arch_setup_additional_pages(struct linux_binprm *bprm,
#ifdef CONFIG_COMPAT

/* PIE load location for compat arm. Must match ARM ELF_ET_DYN_BASE. */
#define COMPAT_ELF_ET_DYN_BASE		0x000400000UL
#define COMPAT_ELF_ET_DYN_BASE		(2 * TASK_SIZE_32 / 3)

/* AArch32 registers. */
#define COMPAT_ELF_NGREG		18