talk-2019-10-OOPSLA19/src/fib7/fib7.eh_elf_basic.c

16 lines
308 B
C

unwind_context_t _eh_elf(
unwind_context_t ctx, uintptr_t pc)
{
unwind_context_t out_ctx;
switch(pc) {
...
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;
...
}
}