Home | History | Annotate | Download | only in sys
History log of /src/lib/libc/arch/hppa/sys/ptrace.S
RevisionDateAuthorComments
 1.8  06-Jun-2022  skrll Save and restore %r19 the "linkage table pointer register" across the call
to __cerror so if the ptrace syscall fails we can call __cerror again with
the correct %r19 value.

Do this even though the call of __cerror doesn't go via the PLT because
__cerror calls __errno which does.

Analysis and fix from Tom Lane in

port-hppa/56864: hppa: ptrace(2) dumps core when returning an error

I changed the location of where %r19 is stored on the stack to follow the
ABI.
 1.7  09-May-2020  skrll No need to .import __cerror as SYS.h does it
 1.6  28-Apr-2008  martin branches: 1.6.8; 1.6.66;
Remove clause 3 and 4 from TNF licenses
 1.5  02-Dec-2007  skrll branches: 1.5.6;
Implement ptrace.
 1.4  01-Jul-2004  skrll branches: 1.4.16;
Add a cerror.S and re-work various syscalls and SYS.h to use __cerror.

With help from the OpenBSD version of SYS.h.
 1.3  06-Oct-2003  matt Update to new assmbler needs. Add getcontext.S stub.
 1.2  01-Jul-2002  fredette Changes to allow libc to compile as PIC on the hppa.
 1.1  06-Jun-2002  fredette Added hppa support (some of it incomplete) to lib/csu, lib/libc,
and lib/libkvm.
 1.4.16.1  09-Jan-2008  matt sync with HEAD
 1.5.6.1  18-May-2008  yamt sync with head.
 1.6.66.1  06-Jun-2022  martin Pull up following revision(s) (requested by skrll in ticket #1464):

lib/libc/arch/hppa/sys/ptrace.S: revision 1.8

Save and restore %r19 the "linkage table pointer register" across the call
to __cerror so if the ptrace syscall fails we can call __cerror again with
the correct %r19 value.

Do this even though the call of __cerror doesn't go via the PLT because
__cerror calls __errno which does.

Analysis and fix from Tom Lane in
PR port-hppa/56864: hppa: ptrace(2) dumps core when returning an error

I changed the location of where %r19 is stored on the stack to follow the
ABI.
 1.6.8.2  28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.6.8.1  28-Apr-2008  martin file ptrace.S was added on branch christos-time_t on 2008-04-28 20:22:57 +0000

RSS XML Feed