| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
ok deraadt@
|
|
|
|
|
| |
Put a hard-trap instruction after the syscall instruction.
ok kettenis mortimer
|
|
|
|
|
|
| |
Convert __cerror to hidden visibility.
from miod@
|
|
|
|
|
|
|
| |
Don't need a PLT relocation for __cerror.
Move macros for doing internal aliases in ASM from SYS.h to DEFS.h
__cerror tweaks by Miod Vallat, testing by aoyama@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This stores errno, the cancelation flags, and related bits for each thread
and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable!
Make libpthread dlopen'able by moving the cancelation wrappers into libc
and doing locking and fork/errno handling via callbacks that libpthread
registers when it first initializes. 'errno' *must* be declared via
<errno.h> now!
Clean up libpthread's symbol exports like libc.
On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec.
Testing by various, particularly sthen@ and patrick@
ok kettenis@
|
|
|
|
|
|
|
|
|
| |
into libc, and move pthread_sigmask() as well (just a trivial wrapper).
This provides consistent handling of SIGTHR between single- and multi-threaded
programs and is a step in the merge of all the libpthread overloads, providing
some ASM and Makefile bits that the other wrappers will need.
ok deraadt@ millert@
|
|
|
|
|
|
|
|
|
|
| |
Stop generating _brk and _sbrk symbols: they've already been hidden.
Set the ELF symbol size on the syscall stubs.
Give the __{min,cur}brk symbols a size and type, and hide more jump labels.
alpha, arm, m88k, sh, sparc, and vax assistance miod@
hppa assistance kettenis@
ok deraadt@ miod@
|
|
|
|
|
|
|
| |
Delete exect(2); it wasn't portable across archs and nothing used it.
ports test build by naddy@
ok deraadt@ kettenis@
|
|
|
|
|
|
|
|
|
|
| |
unregistering callbacks if the DSO is unloaded. Move the callback
handling from libpthread to libc, though libpthread still overrides the
inner call to handle locking and thread-library reinitialization.
Major version bump for both libc and libpthread.
verification that this fixes various ports ajacoutot@
asm assistance miod@; ok millert@ deraadt@
|
|
|
|
|
|
|
| |
for a long time, so there's no need to test the second return register here
in the asm stub.
ok and testing of many archs by krw@ miod@
|
|
|
|
|
| |
years that fork() returns through child_return(), which takes care of zeroing
%r2.
|
|
|
|
|
|
| |
slot in the branch to cerror, for the delay slot instruction would also run
as part of a successful return. Doh. Fortunately almost nothing in the tree
uses brk() or sbrk() anymore... but binaries linked against libiberty.
|
|
|
|
|
| |
fact that #128 and #129 may also be used for this purpose was never documented,
so there is no reason to have libc use #128. Switch to #450 for consistency.
|
|
|
|
|
|
| |
Make the code PIC-aware when necessary (i.e. invoke other functions through
the PLT, and access global data through the GOT). No change for non-PIC
compilation.
|
| |
|
| |
|
|
|
|
| |
for 15 years or so (sigcode, of course, was correct).
|
| |
|
|
|
|
|
|
|
|
|
| |
so that it can't get a signal while still running on the parent thread's
stack. Also, pass in sizeof(struct __tfork) to provide forward compat
when more members are added. This is an ABI change, so switch syscall
numbers and bump lib majors this time.
ok deraadt@ matthew@
|
| |
|
|
|
|
|
|
| |
it can be used for not-strictly-threading purposes
ok matthew@ kurt@
|
|
|
|
| |
ok miod
|
|
|
|
|
|
| |
On mips64, also correct the name called from plain cerror to __cerror.
"looks correct" miod@
|
|
|
|
|
|
|
|
|
|
| |
arguments from the stack, since the kernel will now copyin() them when
necessary.
This makes all system calls (but mmap()) slightly faster.
WARNING! After this commit, your binaries must run against a kernel
featuring m88k/m88k/trap.c r1.34 or better - i.e. a 4.1 or later kernel.
|
|
|
|
| |
okay deraadt@ (tested them all)
|
| |
|
|
|
|
| |
ok deraadt@
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
rescinded 22 July 1999. Proofed by myself and Theo.
|
|
|
|
| |
ok miod@
|
| |
|
| |
|
|
|
|
|
|
|
| |
can link against libc without unresolved symbols again.
Anyone who correctly guessed that my m88k hard drive has been recovered,
wins a strawberry lollipop.
|
|
|
|
| |
pollution. Conforming to art@'s evil plans.
|
| |
|
| |
|
|
|
|
| |
that EFAULT return value is possible
|
| |
|
| |
|
|
|