From bd696f1d1c9cc7390d30f67e4970cac30e1e9210 Mon Sep 17 00:00:00 2001 From: Domagoj Stolfa Date: Tue, 26 Mar 2024 14:28:42 +0000 Subject: [PATCH] c18n: Add a temporary workaround for ubiq-c18n not being present. --- libexec/rtld-elf/rtld_c18n.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libexec/rtld-elf/rtld_c18n.c b/libexec/rtld-elf/rtld_c18n.c index 14421e57ba0b..1587eae4dfea 100644 --- a/libexec/rtld-elf/rtld_c18n.c +++ b/libexec/rtld-elf/rtld_c18n.c @@ -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)); @@ -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));