Show crash reports on SIGSYS

This will help make it easier to troubleshoot ABI breakages with on
operating systems that, unlike Linux don't have ironclad guarantees
to not break userspace.
This commit is contained in:
Justine Tunney 2022-06-23 13:01:01 -07:00
parent a4601a24d3
commit 44da16255a
11 changed files with 83 additions and 19 deletions

View file

@ -24,7 +24,7 @@
__oncrash_thunks:
// <SYNC-LIST>: showcrashreports.c, oncrashthunks.S, oncrash.c
// <SYNC-LIST>: showcrashreports.c, oncrashthunks.S, oncrash.c, internal.h
.org 11*0
__oncrash_sigquit:
@ -89,6 +89,15 @@ __oncrash_sigbus:
ret
.endfn __oncrash_sigbus,globl
// </SYNC-LIST>: showcrashreports.c, oncrashthunks.S, oncrash.c
.org 11*7
__oncrash_sigsys:
push %rbp
mov %rsp,%rbp
call __oncrash
pop %rbp
ret
.endfn __oncrash_sigsys,globl
// </SYNC-LIST>: showcrashreports.c, oncrashthunks.S, oncrash.c, internal.h
.endobj __oncrash_thunks,globl