mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-27 13:00:28 +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
|
@ -28,6 +28,7 @@
|
|||
.ftrace1
|
||||
longjmp:
|
||||
.ftrace2
|
||||
_longjmp:
|
||||
#ifdef __x86_64__
|
||||
mov %esi,%eax
|
||||
test %eax,%eax
|
||||
|
@ -61,5 +62,5 @@ longjmp:
|
|||
#error "unsupported architecture"
|
||||
#endif
|
||||
.endfn longjmp,globl
|
||||
.alias longjmp,_longjmp
|
||||
.endfn _longjmp,globl
|
||||
.alias longjmp,siglongjmp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue