Alexandre Julliard wrote:
Francois Gouget fgouget@free.fr writes:
I am not sure but I suspect the compiler generates indirect accesses for these. I'm not sure what gcc does for variables exported from another library. It seems like it has to be doing something similar. So if we could get access to that indirection we may be able to make things work.
Yes, it would be possible to resolve imports directly through the ELF tables and avoid our own separate import mechanism; basically this would be a PE-aware ld.so. It's quite a bit of work though, and portability is an issue. In any case it's for after 1.0 IMO.
Portability to NetBSD shouldn't be an issue, as they seem to have already implemented it :-) See http://chiharu.haun.org/peace/ http://groups.google.com/groups?selm=20020516061929.5DA943C110%40gabi-n.hauN... et seq. http://www.freebsd.org/cgi/man.cgi?query=compat_pecoff&manpath=NetBSD+1....
- Dan