Re: dynamic shared library .

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

 



On Thu, 03 Feb 2011 15:50:27 +0100, ratheesh k <ratheesh.ksz@xxxxxxxxx> wrote:

when  dll is loaded  .

 at the start of execution of elf ?

     OR

 when the  reference is made into library function or data ?

Depends what you mean by "loaded".  At start of execution, dynamic loader
reads shared object's header files, maps the library to memory accordingly
and probably does some more magic with symbol resolution, etc. (I'm not
an expert and what dynamic loader does is not that trivial).

However, the whole file is not read into memory and instead, needed
portions are read as code references them.

--
Best regards,                                       _     _
.o. | Liege of Serenly Enlightened Majesty of     o' \,=./ `o
..o | Computer Science,  Michal "mina86" Nazarewicz  (o o)
ooo +-<email/jid: mnazarewicz@xxxxxxxxxx>--------ooO--(_)--Ooo--
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux