Skip to content

Commit d3014e1

Browse files
vitalybukalenary
andauthored
[NFC][sanitizer] Use RTLD_DEFAULT for _dl_get_tls_static_info (#108723)
We don't intercept this one, no reason to use RTLD_NEXT. Co-authored-by: Sam Elliott <quic_aelliott@quicinc.com>
1 parent f0787ed commit d3014e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ void InitTlsSize() {
232232

233233
# if defined(__aarch64__) || defined(__x86_64__) || \
234234
defined(__powerpc64__) || defined(__loongarch__)
235-
void *get_tls_static_info = dlsym(RTLD_NEXT, "_dl_get_tls_static_info");
235+
void *get_tls_static_info = dlsym(RTLD_DEFAULT, "_dl_get_tls_static_info");
236236
size_t tls_align;
237237
((void (*)(size_t *, size_t *))get_tls_static_info)(&g_tls_size, &tls_align);
238238
# endif

0 commit comments

Comments
 (0)