[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Loading multiple copies of libstdc++
From: |
Paul Pluzhnikov |
Subject: |
Re: Loading multiple copies of libstdc++ |
Date: |
Mon, 21 Apr 2008 23:10:17 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) |
hemant.ritu@gmail.com writes:
> how can the application check (e.g. look
> for a libstdc++ versioning symbol) if the "first" libstdc++ has
> already explicitly loaded and thereby skip explicit loading of the
> "second" libstdc++.
The answer is generally OS-specific, and you haven't revealed what
your target OS is.
On Linux with recent glibc versions, us dl_iterate_phdr().
On older Linux versions, and Solaris, use _r_debug.r_map.
HP-UX has shl_get_r()
AIX has loadquery(L_GETINFO, ...)
Other OSes probably have equivalent routines.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.