https://bugs.kde.org/show_bug.cgi?id=435441

Szabolcs Nagy <nsz....@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nsz....@gmail.com

--- Comment #3 from Szabolcs Nagy <nsz....@gmail.com> ---
if the malloc symbol is changed to be strong in libc.so then the test passes.

in a shared library, defined symbols with weak binding should be treated
exactly
the same way as symbols with global binding, so valgrind is definitely doing
something wrong.

historically glibc had bugs where the dynamic linker treated weak symbols
specially,
but that was 20 years ago (see LD_DYNAMIC_WEAK in the ld.so manual).

it is not clear why valgrind cares about the soname, i think the malloc symbol
should be interposed independently of the soname of the defining library.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to