[Bug 252307] dlopen (without RTLD_GLOBAL) overrides weak symbols in libc
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Jan 2 04:27:57 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252307
--- Comment #3 from Konstantin Belousov <kib at FreeBSD.org> ---
You need to LD_PRELOAD your interposer, I noted it in my comment #1.
solo% LD_PRELOAD=./override.so ./test
override
In your example, dlopened object would be added at the end of the global list
and in fact its symbols are interposed by the objects loaded at startup, i.e.
the effect is reverse. (And your example misses RTLD_GLOBAL, but does not
matter
much).
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list