You are not logged in.

#1 2011-03-31 09:13:52

Yob
Member
From: Warsaw, Poland
Registered: 2011-03-30
Posts: 6
Website

_dl_open and nasm

Hi,
I'm writing some nasm code in which I call _dl_open / _dl_open_worker function from ld-2.13.so (not libdl!). I know that in eax register I have to store address of the new library's path and in ebx register mode (RTLD_LAZY / RTLD_NOW). Here are my questions:

1) I found that the RTLD_LAZY should be OR'd with 0x80000000. Why? Is it true?

2) What should I store in ecx register? I read that there should be the address of "caller". But what it is?

Thanks in advance.

Offline

Board footer

Powered by FluxBB