Alexandre Julliard julliard@winehq.org wrote:
I'm not sure you can do the ELF magic with a static library, but even if you could there's a lot more to the initial setup than the preloader; that's why winelib apps are shared libraries, so that we can do all the work that needs to be done before they get loaded.
What's one other thing that couldn't reasonably happen at global constructor time (i.e., just before main())?