Skip to content

Commit

Permalink
c18n: Add a temporary workaround for ubiq-c18n not being present.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstolfa committed Mar 27, 2024
1 parent b6fb884 commit 2a35164
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions libexec/rtld-elf/rtld_c18n.c
Original file line number Diff line number Diff line change
Expand Up @@ -864,21 +864,25 @@ struct jmp_args _rtld_unw_setcontext_epilogue(struct jmp_args ret, void *rcsp,
struct jmp_args
_rtld_unw_setcontext(struct jmp_args ret, void *rcsp, void **buf)
{
#ifdef C18N_ENABLED
if (!C18N_ENABLED) {
__attribute__((musttail)) return (
_rtld_unw_setcontext_epilogue(ret, rcsp, buf));
__attribute__((musttail))
return (_rtld_unw_setcontext_epilogue(ret, rcsp, buf));
}
#endif
return (unwind_stack(ret, rcsp, cheri_unseal(*buf, sealer_unwbuf),
get_trusted_frame()));
}

struct jmp_args
_rtld_unw_setcontext_unsealed(struct jmp_args ret, void *rcsp, void **buf)
{
#ifdef C18N_ENABLED
if (!C18N_ENABLED) {
__attribute__((musttail)) return (
_rtld_unw_setcontext_epilogue(ret, rcsp, buf));
__attribute__((musttail))
return (_rtld_unw_setcontext_epilogue(ret, rcsp, buf));
}
#endif
return (unwind_stack(ret, rcsp, *buf, get_trusted_frame()));
}

Expand Down

0 comments on commit 2a35164

Please sign in to comment.