NetBSD-Bugs archive

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

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


>  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

"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 <>

Home | Main Index | Thread Index | Old Index