Re: dynamic shared library .
|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
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