Skip to content

Commit 0402dfa

Browse files
vchuravyvtjnash
andcommitted
Do not fail if fastpath for TLS can't be found
Prevents loading of `libjulia-codegen` into `opt`. Co-authored-by: Jameson Nash <vtjnash@gmail.com>
1 parent ba0b7e9 commit 0402dfa

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

cli/loader_lib.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,8 @@ __attribute__((constructor)) void jl_load_libjulia_internal(void) {
239239
}
240240
void *fptr = lookup_symbol(RTLD_DEFAULT, "jl_get_pgcstack_static");
241241
void *(*key)(void) = lookup_symbol(RTLD_DEFAULT, "jl_pgcstack_addr_static");
242-
if (fptr == NULL || key == NULL) {
243-
jl_loader_print_stderr("ERROR: Cannot find jl_get_pgcstack_static(), must define this symbol within calling executable!\n");
244-
exit(1);
245-
}
246-
jl_pgcstack_setkey(fptr, key);
242+
if (fptr != NULL && key != NULL)
243+
jl_pgcstack_setkey(fptr, key);
247244
#endif
248245

249246
// jl_options must be initialized very early, in case an embedder sets some

0 commit comments

Comments
 (0)