]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Bug 435441 - valgrind fails to interpose malloc on musl 1.2.2 due to weak symbol...
authorPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 23 Jan 2023 08:05:50 +0000 (09:05 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 23 Jan 2023 08:05:50 +0000 (09:05 +0100)
Patch by Michael Forney <mforney@mforney.org>

NEWS
coregrind/m_debuginfo/readelf.c

diff --git a/NEWS b/NEWS
index c8ae4289cd3916617d07042264d06dd0b7fdcc2b..02296575c430e41e223932fd906b2f41f6383f7f 100644 (file)
--- 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
index 56e7d4b6f08f539f740eafd8848cf6c423e86ed8..ce7b7998dea10f961e9e746636b8e3a0ec6f7d3d 100644 (file)
@@ -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;
    }