From: Paul Floyd Date: Mon, 23 Jan 2023 08:05:50 +0000 (+0100) Subject: Bug 435441 - valgrind fails to interpose malloc on musl 1.2.2 due to weak symbol... X-Git-Tag: VALGRIND_3_21_0~208 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a6f1c1322d742308aaa4b3c1d937942b3de6c5a;p=thirdparty%2Fvalgrind.git Bug 435441 - valgrind fails to interpose malloc on musl 1.2.2 due to weak symbol name and no libc soname Patch by Michael Forney --- diff --git a/NEWS b/NEWS index c8ae4289cd..02296575c4 100644 --- a/NEWS +++ b/NEWS @@ -82,6 +82,7 @@ are not entered into bugzilla tend to get forgotten about or ignored. 392331 Spurious lock not held error from inside pthread_cond_timedwait 400793 pthread_rwlock_timedwrlock false positive 433873 openat2 syscall unimplemented on Linux +435441 valgrind fails to interpose malloc on musl 1.2.2 due to weak symbol name and no libc soname 444110 priv/guest_ppc_toIR.c:36198:31: warning: duplicated 'if' condition. 444488 Use glibc.pthread.stack_cache_size tunable 444568 drd/tests/pth_barrier_thr_cr fails on Fedora 38 diff --git a/coregrind/m_debuginfo/readelf.c b/coregrind/m_debuginfo/readelf.c index 56e7d4b6f0..ce7b7998de 100644 --- a/coregrind/m_debuginfo/readelf.c +++ b/coregrind/m_debuginfo/readelf.c @@ -429,7 +429,8 @@ Bool get_elf_symbol_info ( } # endif - if (ELFXX_ST_BIND(sym->st_info) == STB_GLOBAL) { + if (ELFXX_ST_BIND(sym->st_info) == STB_GLOBAL + || ELFXX_ST_BIND(sym->st_info) == STB_WEAK) { *is_global_out = True; }