Commit d3eb17fc authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[PATCH] x86_64: Disable uselib when possible

Disable sys_uselib for 64bit processes and only enable for 32bit processes
when a.out support is compiled in.
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b39e05b1
......@@ -388,7 +388,11 @@ ia32_sys_call_table:
.quad sys_symlink
.quad sys_lstat
.quad sys_readlink /* 85 */
#ifdef CONFIG_IA32_AOUT
.quad sys_uselib
#else
.quad quiet_ni_syscall
#endif
.quad sys_swapon
.quad sys_reboot
.quad compat_sys_old_readdir
......
......@@ -298,8 +298,9 @@ __SYSCALL(__NR_utime, sys_utime)
#define __NR_mknod 133
__SYSCALL(__NR_mknod, sys_mknod)
/* Only needed for a.out */
#define __NR_uselib 134
__SYSCALL(__NR_uselib, sys_uselib)
__SYSCALL(__NR_uselib, sys_ni_syscall)
#define __NR_personality 135
__SYSCALL(__NR_personality, sys_personality)
......
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