This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Global data loaded if symbols aren't resolved
- From: Marcus Clyne <maccaday at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 15 Aug 2009 06:03:40 +0300
- Subject: Global data loaded if symbols aren't resolved
Hi,
If a shared object is loaded using dlopen etc and the symbols in its
object aren't used (specifically they are defined elsewhere already
inside that process), is the data in the symbols automatically loaded
into memory or is it skipped (assuming there are no other programs using
those symbols on the system) and the memory available for other purposes?
Thanks,
Marcus.