Date: Sat, 02 Jan 2021 04:27:56 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 252307] dlopen (without RTLD_GLOBAL) overrides weak symbols in libc Message-ID: <bug-252307-227-sSQKxQ2zWD@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-252307-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252307 --- Comment #3 from Konstantin Belousov <kib@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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252307-227-sSQKxQ2zWD>
