"Dan Kegel" dank@kegel.com writes:
Good question. It's probably pretty involved; you may have to wait for an expert to try it and see what it breaks. Alexandre suggested it might not work recently (see http://bugs.winehq.org/show_bug.cgi?id=10273#c17 ), but perhaps he's being overly pessimistic.
BTW if that idea works for Solaris, it might work for Linux, too.
It works on Linux already, we are using prelink to set the kernel32 load address. That doesn't mean you can avoid -fPIC since the address is not guaranteed to be available.