LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   _dl_open + nasm (https://www.linuxquestions.org/questions/programming-9/_dl_open-nasm-872162/)

wilkux 03-31-2011 09:39 AM

_dl_open + nasm
 
How can I load a library using _dl_open function from ld-2.13.so and nasm, when I know the function address? I know that in eax I should store pointer to the string with new library path, in ebx mode (probably 0x80000000 | RTLD_LAZY, but why 0x80000000?), and what about ecx? What should be placed there? I found that the caller, but what it's?


All times are GMT -5. The time now is 06:05 PM.