mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 07:18:30 +00:00
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:
parent
a4601a24d3
commit
44da16255a
11 changed files with 83 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue