From f6bb885ff685f20375f04c5ce0f942f66c6ffaa6 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sun, 4 Nov 2018 19:11:32 +0000 Subject: [PATCH] Move the fixed base for PIE loading on arm. Existing base causes conflicts for direct execution of ld-elf.so.1 because default linking base for non-PIE binaries is 0x10000. Reported and tested by: Mark Millard Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/arm/include/elf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm/include/elf.h b/sys/arm/include/elf.h index 7424b45e78f..28fc14e3dae 100644 --- a/sys/arm/include/elf.h +++ b/sys/arm/include/elf.h @@ -84,7 +84,7 @@ __ElfType(Auxinfo); */ #define MAGIC_TRAMP_NUMBER 0x5c000003 -#define ET_DYN_LOAD_ADDR 0x12000 +#define ET_DYN_LOAD_ADDR 0x500000 /* Flags passed in AT_HWCAP. */ #define HWCAP_SWP 0x00000001 /* Unsupported, never set. */