summaryrefslogtreecommitdiff
path: root/lib/libc/arch/hppa/sys
AgeCommit message (Collapse)Author
2022-06-26Decorate the HPPA signal trampoline with the appropriate .cfiskrll
directives to allow exception unwind / backtrace across a signal handler.
2022-06-06Save and restore %r19 the "linkage table pointer register" across the callskrll
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.
2021-10-26Merge all MD __sigaction14_sigtramp.c copies into one:christos
- sparc and sparc64 were not using version 0 sigcontext when there were no arguments in the signal version. This was probably a bug. - vax is using +1 the version numbers of the other archs. - Only hppa was defining __LIBC12_SOURCE__ so it was getting a working sigcontext before. all the other ports that supported sigcontext had the compat code disabled. [pointed out by thorpej, thanks!] If we want to remove sigcontext support from userland at least now there is less work to do so.
2020-10-15Remove '_OFFSETOF' prefix for genassm(1) generate CPP identifers forskrll
consistency with other arches. NFCI and libc.so is the same before and after.
2020-05-10Rename curbrk to __curbrk, and make it and __minbrk hiddenskrll
2020-05-09No need to .import __cerror as SYS.h does itskrll
2020-05-05Mark __cerror as hidden to avoid using the PLT. This is required for newskrll
binutils where the PLT stubs now use %t1 (%r22) which is used to pass the errno to __cerror.
2020-05-05Add a space before any non-nullified instruction. NFCI.skrll
2020-05-03Even more trailing whitespaceskrll
2020-05-03Trailing whitespaceskrll
2020-04-18Rename "syscall" to "_syscall" and provide "syscall" as a weak alias.thorpej
2017-02-07Mark exect(3) obsolete and bind it to plain execve(2) on all platformskamil
The original exect(2) from BSD4.2 was enabling bit for tracing (single-step mode) and calling execve(2). The purpose of it was to generate a signal for a tracer once the application will change its image to a new program. This approach no longer works as: - exect(2) traces (single-steps) libc and it requires hundreds or thousands steps before entering a new image - it's vax and x86 specific code - this functionality has been moved to the kernel - once a process is traced it will generate SIGTRAP with si_code TRAP_EXEC and route it to its debugger - the side effects and unportability make this interface unusable - there are no known users of this interface - it apparently never worked better since day0 of NetBSD ("day0 bug") Users are requested to move to other execve(2) variants. Calling current execve(2) as it is the most similar behavior to this one from BSD4.2. Discussed several times on mailing lists and in PR/51700. Add warning to exect(3) telling about marking this function obsolete. This function is prepared to be removed in next libc major bump. Sponsored by <The NetBSD Foundation>
2014-03-06Move to a flat space register convention. %sr[4-7] are all now the spaceskrll
number allocated to the process. gcc produces (slightly) better code with this convention. Retain backwards compatiblity. Welcome to 6.99.36
2014-02-19Provide a genassym.cf in libc for hppa and use it.skrll
2013-09-12Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is smalljoerg
vs big PIC mode. Retire -DPIC and -DBIGPIC.
2012-03-14Use the _end symbol rather than the end symbol. Prevents version infoskrll
problems in elflink.c for the heimdal libraries.
2009-11-03Follow upstream license changes for files with Michael Shalayeff'ssnj
copyright. In most cases, this means dropping the 3rd and 4th clauses.
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2007-12-22Add a comment explaining stack layout and register contents.skrll
2007-12-02Implement ptrace.skrll
2006-03-11move to the new compat layout.christos
2005-06-12Add missing __RCSID()lukem
2005-06-05remove sigtramp version 1, we haven't used it in a long time.chs
2005-06-05fix function name in end-marker.chs
2004-07-18add a siginfo signal trampoline and always use it.chs
2004-07-18replace these placeholders with real implementations.chs
translated from the mips version.
2004-07-18save and restore %t1 around calling __errno, it's a caller-saved register.chs
2004-07-15Add a copyright message.skrll
2004-07-01Add a cerror.S and re-work various syscalls and SYS.h to use __cerror.skrll
With help from the OpenBSD version of SYS.h.
2004-05-17__sigreturn14 -> compat_16___sigreturn14chs
2004-03-26fix references to the syscall formerly known as SYS___sigreturn14drochner
2003-10-06Update to new assmbler needs. Add getcontext.S stub.matt
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-02-13Implement pthread_atfork() (in libc, because the required threadlibnathanw
stub behavior is exactly the same as the usual behavior).
2003-01-18These files are obsolete; setlogin() is now implemented in C with athorpej
small syscall stub.
2002-07-09New __sigaction14() system call stub which registers the signalthorpej
trampoline, and the signal trampolines themselves. NOTE: These are not yet enabled; they will be enabled after further testing on more architectures.
2002-07-01Changes to allow libc to compile as PIC on the hppa.fredette
2002-06-06Added hppa support (some of it incomplete) to lib/csu, lib/libc,fredette
and lib/libkvm.