Gavriel State wrote:
>
> Gavriel State wrote:
> > This could be worked around with some kind of import library system - IE:
> > have a tool that can build an ELF stub import library from a PE DLL, with
> > a initialization routine that would do the LoadLibrary and proc address
> > resolution for you. But that doesn't exist right now, as far as I know.
>
> It occurs to me that this might be a nice way to avoid having to make
> manual calls to GetProcAddress to support using native MS DLLs. The
> current way of doing things is really ugly. Also, doing this would
> help us keep track of the dll-dependance tree more precisely.
>
> Alternatively, we could perhaps come up with a replacement for ld.so
> that can resolve ELF imports from PE exports. I don't know enough
> about how the loader/relay code works to know how hard this would be.
> Anyone?
This is what elfdlls are supposed to be like. An encapsulation of the pe
structure in elf. However, I haven't got the time to finish it. I hope
to find some time soon.
Greetings Bertho