Skip to content

Commit

Permalink
Do not fail if fastpath for TLS can't be found
Browse files Browse the repository at this point in the history
Prevents loading of `libjulia-codegen` into `opt`.

Co-authored-by: Jameson Nash <vtjnash@gmail.com>
  • Loading branch information
vchuravy and vtjnash committed Jan 6, 2022
1 parent ba0b7e9 commit 0402dfa
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cli/loader_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0402dfa

Please sign in to comment.