mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 08:18:30 +00:00
Fix --ftrace with cosmo_dlopen()
This change ensures function call logging won't crash the process when cosmo_dlopen() is called.
This commit is contained in:
parent
15548b523c
commit
2d93788ce3
8 changed files with 35 additions and 7 deletions
|
@ -291,7 +291,7 @@ static wontreturn dontinstrument void foreign_helper(void **p) {
|
|||
__foreign.dlsym = p[1];
|
||||
__foreign.dlclose = p[2];
|
||||
__foreign.dlerror = p[3];
|
||||
longjmp(__foreign.jb, 1);
|
||||
_longjmp(__foreign.jb, 1);
|
||||
}
|
||||
|
||||
static dontinline void elf_exec(const char *file, char **envp) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue