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
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