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:
Justine Tunney 2024-01-05 15:11:37 -08:00
parent 15548b523c
commit 2d93788ce3
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
8 changed files with 35 additions and 7 deletions

View file

@ -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