dlopen load a shared object

if i load a shared object use dlopen , where is the memory of shared object , in heap or stack , and where is the memory , if i malloc a space or declre a variable
A loaded module has nothing to do with it.

A local variable is placed on the stack. malloc is the system allocator in POSIX, ... that's the heap.
Maybe i didn't express my question properly , I think the .so need be load to memory , and not stay in hard disk , so where is the code segment of shared object , load to process's code segment? (I know the code segment is readonly , does dlopen can append code in code segment) . someone tell me :"dlopen will create a new process and have own code segment stack and heap , and so on" , but he can't tell me why i can't see new process when i use "ps aux" . Thx kbw
but he can't tell me why i can't see new process when i use "ps aux"
What new process do you expect to see?

dlopen doesn't create a new process.
Last edited on
Topic archived. No new replies allowed.