Skip to content

Commit 04f6a38

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> (cherry picked from commit 0402dfa)
1 parent 85fc5c9 commit 04f6a38

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
@@ -191,11 +191,8 @@ __attribute__((constructor)) void jl_load_libjulia_internal(void) {
191191
}
192192
void *fptr = lookup_symbol(RTLD_DEFAULT, "jl_get_pgcstack_static");
193193
void *(*key)(void) = lookup_symbol(RTLD_DEFAULT, "jl_pgcstack_addr_static");
194-
if (fptr == NULL || key == NULL) {
195-
jl_loader_print_stderr("ERROR: Cannot find jl_get_pgcstack_static(), must define this symbol within calling executable!\n");
196-
exit(1);
197-
}
198-
jl_pgcstack_setkey(fptr, key);
194+
if (fptr != NULL && key != NULL)
195+
jl_pgcstack_setkey(fptr, key);
199196
#endif
200197

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

0 commit comments

Comments
 (0)