aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-s390/elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-s390/elf.h')
-rw-r--r--include/asm-s390/elf.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-s390/elf.h b/include/asm-s390/elf.h
index b73a424d0f97..8181ca5b98f4 100644
--- a/include/asm-s390/elf.h
+++ b/include/asm-s390/elf.h
@@ -115,6 +115,7 @@ typedef s390_regs elf_gregset_t;
115 115
116#include <linux/sched.h> /* for task_struct */ 116#include <linux/sched.h> /* for task_struct */
117#include <asm/system.h> /* for save_access_regs */ 117#include <asm/system.h> /* for save_access_regs */
118#include <asm/mmu_context.h>
118 119
119/* 120/*
120 * This is used to ensure we don't load something for the wrong architecture. 121 * This is used to ensure we don't load something for the wrong architecture.
@@ -214,4 +215,16 @@ do { \
214} while (0) 215} while (0)
215#endif /* __s390x__ */ 216#endif /* __s390x__ */
216 217
218/*
219 * An executable for which elf_read_implies_exec() returns TRUE will
220 * have the READ_IMPLIES_EXEC personality flag set automatically.
221 */
222#define elf_read_implies_exec(ex, executable_stack) \
223({ \
224 if (current->mm->context.noexec && \
225 executable_stack != EXSTACK_DISABLE_X) \
226 disable_noexec(current->mm, current); \
227 current->mm->context.noexec == 0; \
228})
229
217#endif 230#endif