diff options
author | Khem Raj <raj.khem@gmail.com> | 2010-02-19 19:21:25 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2010-02-19 19:22:35 -0800 |
commit | 39548d72297a8c3d8d55e04b8240e4ce09913a82 (patch) | |
tree | 39f761ceb2061438c76d6bb5f7ceb3ea2c9720ff | |
parent | 1db4f8f8389f6a935ecd83aff7fcce5d1cf2c0f3 (diff) |
Get x86_64 compile to succeed.
* The changes to clone.S needs testing
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | libc/sysdeps/linux/x86_64/clone.S | 3 | ||||
-rw-r--r-- | libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/Makefile.arch | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/x86_64/clone.S b/libc/sysdeps/linux/x86_64/clone.S index 8f53a8412..8c66ce547 100644 --- a/libc/sysdeps/linux/x86_64/clone.S +++ b/libc/sysdeps/linux/x86_64/clone.S @@ -109,7 +109,8 @@ clone: call *%rax /* Call exit with return value from function call. */ movq %rax, %rdi - call HIDDEN_JUMPTARGET(_exit) + movl $__NR_exit, %eax + syscall .size clone,.-clone weak_alias(clone, __clone) diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/Makefile.arch b/libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/Makefile.arch index cd4f2424c..53a87728f 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/Makefile.arch +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/Makefile.arch @@ -18,8 +18,8 @@ libpthread_SSRC += lowlevellock.S pthread_barrier_wait.S pthread_cond_signal.S p sem_post.S sem_timedwait.S lowlevelrobustlock.S \ sem_trywait.S sem_wait.S pthread_rwlock_rdlock.S pthread_rwlock_wrlock.S \ pthread_rwlock_timedrdlock.S pthread_rwlock_timedwrlock.S pthread_rwlock_unlock.S \ - pthread_cond_timedwait.S pthread_cond_wait.S pthread_spin_unlock.S - + pthread_spin_unlock.S +# pthread_cond_timedwait.S pthread_cond_wait.S libc_a_SSRC += libc-lowlevellock.S |