Re: dynamic shared library .

"Michal Nazarewicz" <[email protected]> Thu, 03 Feb 2011 15:59:44 +0100
Newsgroups gmane.linux.c-programming
Organization Google
Message-ID <[email protected]>
On Thu, 03 Feb 2011 15:50:27 +0100, ratheesh k <[email protected]>  
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: [email protected]>--------ooO--(_)--Ooo--
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html