[Bug 37034] Stars!: Crashes on startup

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Aug 5 18:52:01 CDT 2014


http://bugs.winehq.org/show_bug.cgi?id=37034

--- Comment #8 from planetbeing at gmail.com ---
(In reply to Ken Thomases from comment #7)
> (In reply to planetbeing from comment #6)
> 
> > The linker creates an executable with the WINE_DOS segment at 0x1000. On
> > load of the executable, dyld adds a slide to executable marked MH_PIE.
> 
> > It's still useful to define
> > the linker segments to prevent the rest of the code from ever being placed
> > too low, but the actual reservation must happen at non-slid addresses (at
> > least for WINE_DOS, not sure if WINE_SHAREDHEAP has specific address
> > requirements).
> 
> No, it's not useful.  The WINE_DOS segment is not just used to make sure no
> other part of the wineloader gets put too low, but that nothing else that
> gets loaded or initialized before main() gets put there, either.  The
> WINE_DOS segment really has to be put at 0x1000 or we might as well not have
> it at all.
> 
> 
> > It's possible to fix this with -Wl,-no_pie but that seems to me to be
> > needlessly removing a security mitigation.
> 
> Wine needs to be loaded at a specific address.  That's why, for example, it
> uses "-image_base 0x7bf00000".  I don't think ASLR is acceptable for Wine.

In light of the fact there are other code dependencies on Wine being loaded
into a specific address, then -no_pie is definitely the right way to go.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list