aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64/include/asm/elf.h')
-rw-r--r--arch/arm64/include/asm/elf.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm64/include/asm/elf.h b/arch/arm64/include/asm/elf.h
index 7875c886ad24..cd3dfa346649 100644
--- a/arch/arm64/include/asm/elf.h
+++ b/arch/arm64/include/asm/elf.h
@@ -113,12 +113,11 @@
113#define ELF_EXEC_PAGESIZE PAGE_SIZE 113#define ELF_EXEC_PAGESIZE PAGE_SIZE
114 114
115/* 115/*
116 * This is the location that an ET_DYN program is loaded if exec'ed. Typical 116 * This is the base location for PIE (ET_DYN with INTERP) loads. On
117 * use of this is to invoke "./ld.so someprog" to test out a new version of 117 * 64-bit, this is above 4GB to leave the entire 32-bit address
118 * the loader. We need to make sure that it is out of the way of the program 118 * space open for things that want to use the area for 32-bit pointers.
119 * that it will "exec", and that there is sufficient room for the brk.
120 */ 119 */
121#define ELF_ET_DYN_BASE (2 * TASK_SIZE_64 / 3) 120#define ELF_ET_DYN_BASE (2 * TASK_SIZE_64 / 3)
122 121
123#ifndef __ASSEMBLY__ 122#ifndef __ASSEMBLY__
124 123
@@ -169,7 +168,8 @@ extern int arch_setup_additional_pages(struct linux_binprm *bprm,
169 168
170#ifdef CONFIG_COMPAT 169#ifdef CONFIG_COMPAT
171 170
172#define COMPAT_ELF_ET_DYN_BASE (2 * TASK_SIZE_32 / 3) 171/* PIE load location for compat arm. Must match ARM ELF_ET_DYN_BASE. */
172#define COMPAT_ELF_ET_DYN_BASE 0x000400000UL
173 173
174/* AArch32 registers. */ 174/* AArch32 registers. */
175#define COMPAT_ELF_NGREG 18 175#define COMPAT_ELF_NGREG 18