git: Unbreak ptrace on x86_64

看板DFBSD_commit作者時間16年前 (2009/12/01 21:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 95a5b34936ae88313dea47593a1e7033561ca997 Author: Aggelos Economopoulos <aoiko@cc.ece.ntua.gr> Date: Tue Dec 1 14:46:09 2009 +0200 Unbreak ptrace on x86_64 The asm code was calling __tls_get_addr in order to set errno to 0 before the system call and that was trashing registers holding the syscall arguments. Don't bother setting errno to 0 anymore (the in-tree users are careful to set that themselves when appropriate). While here, declare it properly as a weak symbol. At this point we could just drop the hand-written assembly. Proxies-to-x86_64-dfly: Antonio Huete Jimenez, Jan Lentfer Dragonfly-bug: http://bugs.dragonflybsd.org/issue1571 Summary of changes: lib/libc/x86_64/sys/ptrace.S | 34 ++++++++++------------------------ 1 files changed, 10 insertions(+), 24 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/95a5b34936ae88313dea47593a1e7033561ca997 -- DragonFly BSD source repository
文章代碼(AID): #1B5HhZLg (DFBSD_commit)