diff options
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/x86/include/asm/elf.h | 2 | ||||
| -rw-r--r-- | arch/x86/vdso/vdso32-setup.c | 3 | ||||
| -rw-r--r-- | arch/x86/vdso/vma.c | 8 |
3 files changed, 7 insertions, 6 deletions
diff --git a/arch/x86/include/asm/elf.h b/arch/x86/include/asm/elf.h index 83aabea95dd7..1e40634591a4 100644 --- a/arch/x86/include/asm/elf.h +++ b/arch/x86/include/asm/elf.h | |||
| @@ -331,6 +331,8 @@ struct linux_binprm; | |||
| 331 | #define ARCH_HAS_SETUP_ADDITIONAL_PAGES 1 | 331 | #define ARCH_HAS_SETUP_ADDITIONAL_PAGES 1 |
| 332 | extern int arch_setup_additional_pages(struct linux_binprm *bprm, | 332 | extern int arch_setup_additional_pages(struct linux_binprm *bprm, |
| 333 | int uses_interp); | 333 | int uses_interp); |
| 334 | extern int x32_setup_additional_pages(struct linux_binprm *bprm, | ||
| 335 | int uses_interp); | ||
| 334 | 336 | ||
| 335 | extern int syscall32_setup_pages(struct linux_binprm *, int exstack); | 337 | extern int syscall32_setup_pages(struct linux_binprm *, int exstack); |
| 336 | #define compat_arch_setup_additional_pages syscall32_setup_pages | 338 | #define compat_arch_setup_additional_pages syscall32_setup_pages |
diff --git a/arch/x86/vdso/vdso32-setup.c b/arch/x86/vdso/vdso32-setup.c index 01b8a0df5e0e..10f9f59477db 100644 --- a/arch/x86/vdso/vdso32-setup.c +++ b/arch/x86/vdso/vdso32-setup.c | |||
| @@ -318,9 +318,8 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp) | |||
| 318 | bool compat; | 318 | bool compat; |
| 319 | 319 | ||
| 320 | #ifdef CONFIG_X86_X32_ABI | 320 | #ifdef CONFIG_X86_X32_ABI |
| 321 | extern int x32_setup_additional_pages(struct linux_binprm *, int); | ||
| 322 | if (test_thread_flag(TIF_X32)) | 321 | if (test_thread_flag(TIF_X32)) |
| 323 | return x32_setup_additional_pages (bprm, uses_interp); | 322 | return x32_setup_additional_pages(bprm, uses_interp); |
| 324 | #endif | 323 | #endif |
| 325 | 324 | ||
| 326 | if (vdso_enabled == VDSO_DISABLED) | 325 | if (vdso_enabled == VDSO_DISABLED) |
diff --git a/arch/x86/vdso/vma.c b/arch/x86/vdso/vma.c index 1bbcc6205ace..d7dce1dbf8c9 100644 --- a/arch/x86/vdso/vma.c +++ b/arch/x86/vdso/vma.c | |||
| @@ -187,15 +187,15 @@ up_fail: | |||
| 187 | 187 | ||
| 188 | int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp) | 188 | int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp) |
| 189 | { | 189 | { |
| 190 | return setup_additional_pages (bprm, uses_interp, vdso_pages, | 190 | return setup_additional_pages(bprm, uses_interp, vdso_pages, |
| 191 | vdso_size); | 191 | vdso_size); |
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | #ifdef CONFIG_X86_X32_ABI | 194 | #ifdef CONFIG_X86_X32_ABI |
| 195 | int x32_setup_additional_pages(struct linux_binprm *bprm, int uses_interp) | 195 | int x32_setup_additional_pages(struct linux_binprm *bprm, int uses_interp) |
| 196 | { | 196 | { |
| 197 | return setup_additional_pages (bprm, uses_interp, vdsox32_pages, | 197 | return setup_additional_pages(bprm, uses_interp, vdsox32_pages, |
| 198 | vdsox32_size); | 198 | vdsox32_size); |
| 199 | } | 199 | } |
| 200 | #endif | 200 | #endif |
| 201 | 201 | ||
