Skip to content

Commit 7130f2f

Browse files
szmitorvalds
authored andcommitted
uml: fix link error from prefixing of i386 syscalls with ptregs_
Fix the following link error: arch/um/sys-i386/built-in.o: In function `sys_call_table': (.rodata+0x11c): undefined reference to `ptregs_fork' arch/um/sys-i386/built-in.o: In function `sys_call_table': (.rodata+0x140): undefined reference to `ptregs_execve' arch/um/sys-i386/built-in.o: In function `sys_call_table': (.rodata+0x2cc): undefined reference to `ptregs_iopl' arch/um/sys-i386/built-in.o: In function `sys_call_table': (.rodata+0x2d8): undefined reference to `ptregs_vm86old' arch/um/sys-i386/built-in.o: In function `sys_call_table': (.rodata+0x2f0): undefined reference to `ptregs_sigreturn' arch/um/sys-i386/built-in.o: In function `sys_call_table': (.rodata+0x2f4): undefined reference to `ptregs_clone' arch/um/sys-i386/built-in.o: In function `sys_call_table': (.rodata+0x3ac): undefined reference to `ptregs_vm86' arch/um/sys-i386/built-in.o: In function `sys_call_table': (.rodata+0x3c8): undefined reference to `ptregs_rt_sigreturn' arch/um/sys-i386/built-in.o: In function `sys_call_table': (.rodata+0x3fc): undefined reference to `ptregs_sigaltstack' arch/um/sys-i386/built-in.o: In function `sys_call_table': (.rodata+0x40c): undefined reference to `ptregs_vfork' This was introduced by commit 253f29a, "x86: pass in pt_regs pointer for syscalls that need it" Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Cc: Brian Gerst <brgerst@gmail.com> Cc: Tejun Heo <tj@kernel.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Jeff Dike <jdike@addtoit.com> Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent ebe28bb commit 7130f2f

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎arch/um/sys-i386/sys_call_table.S‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@
99

1010
#define old_mmap old_mmap_i386
1111

12+
#define ptregs_fork sys_fork
13+
#define ptregs_execve sys_execve
14+
#define ptregs_iopl sys_iopl
15+
#define ptregs_vm86old sys_vm86old
16+
#define ptregs_sigreturn sys_sigreturn
17+
#define ptregs_clone sys_clone
18+
#define ptregs_vm86 sys_vm86
19+
#define ptregs_rt_sigreturn sys_rt_sigreturn
20+
#define ptregs_sigaltstack sys_sigaltstack
21+
#define ptregs_vfork sys_vfork
22+
1223
.section .rodata,"a"
1324

1425
#include "../../x86/kernel/syscall_table_32.S"

0 commit comments

Comments
 (0)