Re: Global data loaded if symbols aren't resolved

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

 



Marcus Clyne <maccaday@xxxxxxxxx> writes:

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

If you open a shared library with dlopen, then that library is loaded
into memory.  This will use up virtual address space.  If you don't use
the library for anything, then the pages will never be loaded into RAM.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux