Index: qemu-arm-eabi/linux-user/syscall.c =================================================================== --- qemu-arm-eabi.orig/linux-user/syscall.c 2008-10-13 18:06:03.000000000 -0300 +++ qemu-arm-eabi/linux-user/syscall.c 2008-10-13 18:56:02.000000000 -0300 @@ -154,6 +154,7 @@ } +#define __NR_sys_exit __NR_exit #define __NR_sys_uname __NR_uname #define __NR_sys_faccessat __NR_faccessat #define __NR_sys_fchmodat __NR_fchmodat @@ -195,6 +196,7 @@ return -ENOSYS; } #endif +_syscall1(int,sys_exit,int,status) _syscall1(int,sys_uname,struct new_utsname *,buf) #if defined(TARGET_NR_faccessat) && defined(__NR_faccessat) _syscall4(int,sys_faccessat,int,dirfd,const char *,pathname,int,mode,int,flags) @@ -3756,7 +3758,7 @@ #endif gdb_exit(cpu_env, arg1); /* XXX: should free thread stack and CPU env */ - _exit(arg1); + sys_exit(arg1); ret = 0; /* avoid warning */ break; case TARGET_NR_read: