A question about dlopen implementation
Posted: Tue Dec 11, 2012 2:06 am
Hello,
While designing my shared library facilities a question came to my mind about dlopen. Until now i'm managing a list of shared libraries and i map them to process space if they are needed (ELF relocation, etc...) The virtual layout of a process is the following:
[KERNEL_SPACE(<=512MB): PROCESS_CODE+HEAP--->................<---PROCESS_STACK:LIB1,LIB2...]
Is dlopen is expected to open a library and make it available in the process heap? I would be surprised if it is not the case.
While designing my shared library facilities a question came to my mind about dlopen. Until now i'm managing a list of shared libraries and i map them to process space if they are needed (ELF relocation, etc...) The virtual layout of a process is the following:
[KERNEL_SPACE(<=512MB): PROCESS_CODE+HEAP--->................<---PROCESS_STACK:LIB1,LIB2...]
Is dlopen is expected to open a library and make it available in the process heap? I would be surprised if it is not the case.