Commit d5b5fb30 authored by Anton Blanchard's avatar Anton Blanchard

ppc64: always compile in 32bit ELF support

parent 4462b096
...@@ -187,9 +187,6 @@ config BINFMT_ELF ...@@ -187,9 +187,6 @@ config BINFMT_ELF
executables used across different architectures and operating executables used across different architectures and operating
systems. systems.
config BINFMT_ELF32
tristate "Kernel support for 32-bit ELF binaries"
config BINFMT_MISC config BINFMT_MISC
tristate "Kernel support for MISC binaries" tristate "Kernel support for MISC binaries"
---help--- ---help---
......
...@@ -74,12 +74,6 @@ extern void start_thread32(struct pt_regs *, unsigned long, unsigned long); ...@@ -74,12 +74,6 @@ extern void start_thread32(struct pt_regs *, unsigned long, unsigned long);
#define init_elf_binfmt init_elf32_binfmt #define init_elf_binfmt init_elf32_binfmt
#undef CONFIG_BINFMT_ELF #undef CONFIG_BINFMT_ELF
#ifdef CONFIG_BINFMT_ELF32 #define CONFIG_BINFMT_ELF 1
#define CONFIG_BINFMT_ELF CONFIG_BINFMT_ELF32
#endif
#undef CONFIG_BINFMT_ELF_MODULE
#ifdef CONFIG_BINFMT_ELF32_MODULE
#define CONFIG_BINFMT_ELF_MODULE CONFIG_BINFMT_ELF32_MODULE
#endif
#include "../../../fs/binfmt_elf.c" #include "../../../fs/binfmt_elf.c"
...@@ -102,7 +102,6 @@ _GLOBAL(DoSyscall) ...@@ -102,7 +102,6 @@ _GLOBAL(DoSyscall)
* Need to vector to 32 Bit or default sys_call_table here, * Need to vector to 32 Bit or default sys_call_table here,
* based on caller's run-mode / personality. * based on caller's run-mode / personality.
*/ */
#ifdef CONFIG_BINFMT_ELF32
andi. r11,r10,_TIF_32BIT andi. r11,r10,_TIF_32BIT
beq- 15f beq- 15f
ld r10,.SYS_CALL_TABLE32@toc(2) ld r10,.SYS_CALL_TABLE32@toc(2)
...@@ -118,7 +117,6 @@ _GLOBAL(DoSyscall) ...@@ -118,7 +117,6 @@ _GLOBAL(DoSyscall)
clrldi r8,r8,32 clrldi r8,r8,32
b 17f b 17f
15: 15:
#endif
ld r10,.SYS_CALL_TABLE@toc(2) ld r10,.SYS_CALL_TABLE@toc(2)
17: slwi r0,r0,3 17: slwi r0,r0,3
ldx r10,r10,r0 /* Fetch system call handler [ptr] */ ldx r10,r10,r0 /* Fetch system call handler [ptr] */
...@@ -171,7 +169,6 @@ _GLOBAL(ret_from_syscall_1) ...@@ -171,7 +169,6 @@ _GLOBAL(ret_from_syscall_1)
* Need to vector to 32 Bit or default sys_call_table here, * Need to vector to 32 Bit or default sys_call_table here,
* based on caller's run-mode / personality. * based on caller's run-mode / personality.
*/ */
#ifdef CONFIG_BINFMT_ELF32
clrrdi r10,r1,THREAD_SHIFT clrrdi r10,r1,THREAD_SHIFT
ld r10,TI_FLAGS(r10) ld r10,TI_FLAGS(r10)
andi. r11,r10,_TIF_32BIT andi. r11,r10,_TIF_32BIT
...@@ -189,7 +186,6 @@ _GLOBAL(ret_from_syscall_1) ...@@ -189,7 +186,6 @@ _GLOBAL(ret_from_syscall_1)
clrldi r8,r8,32 clrldi r8,r8,32
b 57f b 57f
55: 55:
#endif
ld r10,.SYS_CALL_TABLE@toc(2) ld r10,.SYS_CALL_TABLE@toc(2)
57: 57:
slwi r0,r0,3 slwi r0,r0,3
......
...@@ -499,7 +499,6 @@ SYSCALL(dup) ...@@ -499,7 +499,6 @@ SYSCALL(dup)
SYSCALL(execve) SYSCALL(execve)
SYSCALL(waitpid) SYSCALL(waitpid)
#ifdef CONFIG_BINFMT_ELF32
/* Why isn't this a) automatic, b) written in 'C'? */ /* Why isn't this a) automatic, b) written in 'C'? */
.balign 8 .balign 8
_GLOBAL(sys_call_table32) _GLOBAL(sys_call_table32)
...@@ -747,7 +746,6 @@ _GLOBAL(sys_call_table32) ...@@ -747,7 +746,6 @@ _GLOBAL(sys_call_table32)
.rept NR_syscalls-239 .rept NR_syscalls-239
.llong .sys_ni_syscall .llong .sys_ni_syscall
.endr .endr
#endif
.balign 8 .balign 8
_GLOBAL(sys_call_table) _GLOBAL(sys_call_table)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment