From 0402dfa50c6024140f723a96af27d49b8a31c8ed Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Thu, 6 Jan 2022 15:47:30 -0500 Subject: [PATCH] Do not fail if fastpath for TLS can't be found Prevents loading of `libjulia-codegen` into `opt`. Co-authored-by: Jameson Nash --- cli/loader_lib.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cli/loader_lib.c b/cli/loader_lib.c index 4c40936ff7530..ca90e6b465604 100644 --- a/cli/loader_lib.c +++ b/cli/loader_lib.c @@ -239,11 +239,8 @@ __attribute__((constructor)) void jl_load_libjulia_internal(void) { } void *fptr = lookup_symbol(RTLD_DEFAULT, "jl_get_pgcstack_static"); void *(*key)(void) = lookup_symbol(RTLD_DEFAULT, "jl_pgcstack_addr_static"); - if (fptr == NULL || key == NULL) { - jl_loader_print_stderr("ERROR: Cannot find jl_get_pgcstack_static(), must define this symbol within calling executable!\n"); - exit(1); - } - jl_pgcstack_setkey(fptr, key); + if (fptr != NULL && key != NULL) + jl_pgcstack_setkey(fptr, key); #endif // jl_options must be initialized very early, in case an embedder sets some