NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/39986: libmapper_zone.so is trying to call undefined weak symbol



hi,

>  Actually this has nothing to do with C++.
>  The problem is that unloading libraries that are loaded with RTLD_GLOBAL
>  is very dangerous.
>

yes, i know this problem occur when specified RTLD_GLOBAL.
but in Solaris's manual, they recommends it:

Sun Studio 12: C++ User's Guide
16.8 Using dlopen to Access a C++ Library From a C Program
http://docs.sun.com/app/docs/doc/819-5267/bkamv?l=Ja&a=view

"When shared libraries are opened with dlopen(), RTLD_GLOBAL must be
used for exceptions to work."


and again, this problem is NetBSD specific problem. neither
{Free,Open}BSD nor Linux.
they already solved this problem by using --eh-frame-hdr.

very truly yours.
--
Takehiko NOZAKI <tnozaki%NetBSD.org@localhost>


Home | Main Index | Thread Index | Old Index