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 a913fa0 commit 43a348e
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 @@ -866,6 +866,12 @@ struct jmp_args
_rtld_unw_setcontext(struct jmp_args ret, void *p __unused, 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, p, rcsp, buf));
Expand All @@ -878,6 +884,12 @@ struct jmp_args
_rtld_unw_setcontext_unsealed(struct jmp_args ret, void *p __unused, 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, p, rcsp, buf));
Expand Down

0 comments on commit 43a348e

Please sign in to comment.