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 26, 2024
1 parent 72051da commit bd696f1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libexec/rtld-elf/rtld_c18n.c
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,12 @@ 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)
{
/*
* FIXME: Temporary variable before ubiq-c18n lands.
*/
#ifndef C18N_ENABLED
bool C18N_ENABLED = true;
#endif
if (!C18N_ENABLED) {
__attribute__((musttail)) return (
_rtld_unw_setcontext_epilogue(ret, rcsp, buf));
Expand All @@ -875,6 +881,12 @@ _rtld_unw_setcontext(struct jmp_args ret, void *rcsp, void **buf)
struct jmp_args
_rtld_unw_setcontext_unsealed(struct jmp_args ret, void *rcsp, void **buf)
{
/*
* FIXME: Temporary variable before ubiq-c18n lands.
*/
#ifndef C18N_ENABLED
bool C18N_ENABLED = true;
#endif
if (!C18N_ENABLED) {
__attribute__((musttail)) return (
_rtld_unw_setcontext_epilogue(ret, rcsp, buf));
Expand Down

0 comments on commit bd696f1

Please sign in to comment.