i produced some DLL via
$ gcc -O2 -shared -o a.dll -Wl,--out-implib=liba.so a.o
thus i got the dll and the import library i guess. then i noticed gcc's
ability to link against dlls directly. i deleted the import library. then
i linked some program against this dll.
$ gcc -o b.exe b.c -la
everthing works fine, so far. the a.dll has got its export symbols and the
b.exe has got its import symbols (checked via objdump -p). but if i want
to run the b.exe it simply segfaults. when checking this with a debugger i
noticed the pointers the b.exe got to map a.dll's symbols are wrong
(invalid). could it be that the linker (or whichever code) gets confused
with the image base or entry points ? please help !
thanks in advance,
Get latest updates about Open Source Projects, Conferences and News.