Skip to content

Commit

Permalink
[NFC][sanitizer] Use RTLD_DEFAULT for _dl_get_tls_static_info (#108723)
Browse files Browse the repository at this point in the history
We don't intercept this one, no reason to use RTLD_NEXT.

Co-authored-by: Sam Elliott <quic_aelliott@quicinc.com>
  • Loading branch information
vitalybuka and lenary committed Sep 16, 2024
1 parent f0787ed commit d3014e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ void InitTlsSize() {

# if defined(__aarch64__) || defined(__x86_64__) || \
defined(__powerpc64__) || defined(__loongarch__)
void *get_tls_static_info = dlsym(RTLD_NEXT, "_dl_get_tls_static_info");
void *get_tls_static_info = dlsym(RTLD_DEFAULT, "_dl_get_tls_static_info");
size_t tls_align;
((void (*)(size_t *, size_t *))get_tls_static_info)(&g_tls_size, &tls_align);
# endif
Expand Down

0 comments on commit d3014e1

Please sign in to comment.