diff options
Diffstat (limited to 'arch/s390/include/asm/elf.h')
-rw-r--r-- | arch/s390/include/asm/elf.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/arch/s390/include/asm/elf.h b/arch/s390/include/asm/elf.h index 354d42616c7e..64b61bf72e93 100644 --- a/arch/s390/include/asm/elf.h +++ b/arch/s390/include/asm/elf.h | |||
@@ -161,7 +161,9 @@ extern unsigned int vdso_enabled; | |||
161 | use of this is to invoke "./ld.so someprog" to test out a new version of | 161 | use of this is to invoke "./ld.so someprog" to test out a new version of |
162 | the loader. We need to make sure that it is out of the way of the program | 162 | the loader. We need to make sure that it is out of the way of the program |
163 | that it will "exec", and that there is sufficient room for the brk. */ | 163 | that it will "exec", and that there is sufficient room for the brk. */ |
164 | #define ELF_ET_DYN_BASE (STACK_TOP / 3 * 2) | 164 | |
165 | extern unsigned long randomize_et_dyn(unsigned long base); | ||
166 | #define ELF_ET_DYN_BASE (randomize_et_dyn(STACK_TOP / 3 * 2)) | ||
165 | 167 | ||
166 | /* This yields a mask that user programs can use to figure out what | 168 | /* This yields a mask that user programs can use to figure out what |
167 | instruction set this CPU supports. */ | 169 | instruction set this CPU supports. */ |
@@ -194,17 +196,7 @@ do { \ | |||
194 | } while (0) | 196 | } while (0) |
195 | #endif /* __s390x__ */ | 197 | #endif /* __s390x__ */ |
196 | 198 | ||
197 | /* | 199 | #define STACK_RND_MASK 0x7ffUL |
198 | * An executable for which elf_read_implies_exec() returns TRUE will | ||
199 | * have the READ_IMPLIES_EXEC personality flag set automatically. | ||
200 | */ | ||
201 | #define elf_read_implies_exec(ex, executable_stack) \ | ||
202 | ({ \ | ||
203 | if (current->mm->context.noexec && \ | ||
204 | executable_stack != EXSTACK_DISABLE_X) \ | ||
205 | disable_noexec(current->mm, current); \ | ||
206 | current->mm->context.noexec == 0; \ | ||
207 | }) | ||
208 | 200 | ||
209 | #define ARCH_DLINFO \ | 201 | #define ARCH_DLINFO \ |
210 | do { \ | 202 | do { \ |
@@ -218,4 +210,7 @@ struct linux_binprm; | |||
218 | #define ARCH_HAS_SETUP_ADDITIONAL_PAGES 1 | 210 | #define ARCH_HAS_SETUP_ADDITIONAL_PAGES 1 |
219 | int arch_setup_additional_pages(struct linux_binprm *, int); | 211 | int arch_setup_additional_pages(struct linux_binprm *, int); |
220 | 212 | ||
213 | extern unsigned long arch_randomize_brk(struct mm_struct *mm); | ||
214 | #define arch_randomize_brk arch_randomize_brk | ||
215 | |||
221 | #endif | 216 | #endif |