[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: exec-shield patch take 6
From:       Mike Hearn <mh () codeweavers ! com>
Date:       2004-04-28 12:24:16
Message-ID: pan.2004.04.28.12.24.15.890637 () codeweavers ! com
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic