mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-04 18:28:30 +00:00
Get cosmo_dlopen() working better on System Five
Imported functions are now aspected with a trampoline that blocks signals and changes the thread-local storage register. This means bigger more complicated libraries can now be imported even though the whole technique remains fundamentally unsafe.
This commit is contained in:
parent
3a470ed356
commit
e4584ace81
6 changed files with 304 additions and 190 deletions
|
@ -147,6 +147,9 @@ relegated static char *ShowGeneralRegisters(char *p, ucontext_t *ctx) {
|
|||
ctx->uc_mcontext.fpregs ? ctx->uc_mcontext.fpregs->swd : 0,
|
||||
ctx->uc_mcontext.fpregs ? ctx->uc_mcontext.fpregs->mxcsr : 0);
|
||||
*p++ = '\n';
|
||||
p = stpcpy(p, "TLS ");
|
||||
p = HexCpy(p, (long)__get_tls(), 64);
|
||||
*p++ = '\n';
|
||||
return p;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue