exec-shield patch take 6

Mike Hearn mh at codeweavers.com
Wed Apr 28 07:24:16 CDT 2004


On Wed, 28 Apr 2004 20:13:34 +0900, Mike McCormack wrote:
> * figure out how to find the base address of the preloader at link time
>    so it's not hardcoded in the source.

If it was dynamic we could simply walk the _DYNAMIC list, but as it's
static I think /proc/self/maps is the only way. Of course, that isn't
portable either :)
 
> The main problem is getting Alexandre to review it, and figure out what
> other things he wants addressed before it can be included.  Until that
> happens, I'm going to maintain and periodically improve the patch so
> that others can use/test it.

Cool. I don't have time to work on this anymore anyway.
 
> Well, we can't get it right unless we know the location of the PE that's
> going to be run, so the idea is that Wine will always load a simple
> winelib exe that calls CreateProcess first.  CreateProcess passes the
> unix path of the PE image in WINEPEEXEPATH.

Argh, more init complexity. This is going to get confusing fast :)
 
thanks -mike




More information about the wine-devel mailing list