[Bug 246462] rtld/dlopen incorrect resolution of symbols [RTLD_DEEPBIND]

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri May 15 11:23:01 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246462

--- Comment #7 from Martin Birgmeier <d8zNeCFG at aon.at> ---
Created attachment 214517
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=214517&action=edit
patches to upgrade postgresql-mysql_fdw from 2.5.1 to 2.5.3, updated

Hi Konstantin,

That was quick - and D24841 is a nice trick!

I applied the patches from D24841 and reinstalled libexec/ld-elf.so.1,
libexec/ld-elf32.so.1, and usr/include/dlfcn.h. (I had to adapt them minimally
to apply to releng/12.1.) I also modified the port to use RTLD_DEEPBIND for
FreeBSD - the new patches are included.

And voila, it is working!

Nonetheless, your original remarks show the better solution: libmysqlclient.so
should be compiled with -Bsymbolic (I did not do this in the test above, to be
sure). Is there a way to set this flag directly on an already installed .so
file?

Thank you,

Martin

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list