From 43a348eded0e9916d179bc6c593e970d32ecec6b 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 e013c504624a..655be6b9e3e4 100644 --- a/libexec/rtld-elf/rtld_c18n.c +++ b/libexec/rtld-elf/rtld_c18n.c @@ -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)); @@ -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));