19 lines
431 B
C
19 lines
431 B
C
unwind_context_t _eh_elf(
|
|
unwind_context_t ctx, uintptr_t pc)
|
|
{
|
|
unwind_context_t out_ctx;
|
|
switch(pc) {
|
|
// [...] Previous FDEs redacted
|
|
case 0x615 ... 0x618:
|
|
out_ctx.rsp = ctx.rsp + (8);
|
|
out_ctx.rip =
|
|
*((uintptr_t*)(out_ctx.rsp + (-8)));
|
|
out_ctx.flags = 3u;
|
|
return out_ctx;
|
|
// [...] Further lines and FDEs redacted
|
|
default:
|
|
out_ctx.flags = 128u;
|
|
return out_ctx;
|
|
}
|
|
}
|