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/> References: <bug-252307-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252307 --- 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=3D./override.so ./test override In your example, dlopened object would be added at the end of the global li= st 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). --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252307-227-sSQKxQ2zWD>