[1/2] loader: FreeBSD requires pre_exec() on x86_64

André Hentschel nerv at dawncrow.de
Mon Feb 2 15:22:24 CST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 02.02.2015 um 21:20 schrieb David Naylor:
> Just as with i386, FreeBSD requires the maximum size of the data segment to be
> extended on x86_64 for Wine to work correctly.
> ---
>  loader/main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/loader/main.c b/loader/main.c
> index ac67290..bb4f949 100644
> --- a/loader/main.c
> +++ b/loader/main.c
> @@ -181,7 +181,7 @@ static int pre_exec(void)
>      return 1;  /* we have a preloader on x86-64 */
>  }
>  
> -#elif (defined(__FreeBSD__) || defined (__FreeBSD_kernel__) || defined(__DragonFly__)) && defined(__i386__)
> +#elif (defined(__FreeBSD__) || defined (__FreeBSD_kernel__) || defined(__DragonFly__)) && (defined(__i386__) || defined(__x86_64__))
>  
>  static int pre_exec(void)
>  {
> 
> 
> 
> 

This is already fixed for a while, see:

https://www.winehq.org/wwn/383#Wine64%20on%20FreeBSD
 -> https://bugs.winehq.org/show_bug.cgi?id=34330
     -> https://source.winehq.org/git/wine.git/blobdiff/036670810c7e8bf55a5ee0e71e32fa4a097dac02..4b708fc325753f1bb1c8210bb67757ebbf9f60dd:/loader/main.c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQGcBAEBAgAGBQJUz+qIAAoJEGm5GZTakYssKKEL/1kc5U/Um4TIfoIWFCZZoenL
XhlZwjyJ90hJDicOZAHCKZxIcpu5J0fld52FIB5JunJZGSVcIXtcwmp1OwiA1BT4
5QPGR1WJ2bL4MU2lWw6+IEFZoL92Z7EsFkKjEM5l+u0l/APXp/5pq7Tj61qYvyoI
HWhgauD7oWSK9PThWVdT7KiLmWFMLL5Rt3wB4coVExOhNah2jfGsJUDQUW08fX6B
wKIB2r+O0h7xaR+zjnZSdB8iBqSTuCasUcaq0YcT8NccPQedlKJswnVu809Ygdg4
5PDn89Y1MGbSBIlcM8PjRtQrfU7bWLqOXmbY5bpaJbRbABz39UryrW0RleDTWC/G
8sJ3jtF7sO3YILQeFaaLUc0lyD64uGnwEoeGTJjB6n4khSVG5ZCsbn+twU6TwlT4
JYRfCNLgAv/fr9LnoI54HmBuyOscpP/1k9UO/6w2mQvugLe5k6TBQoiUMkk5le93
TbyOop4cFqHXR6DPfaIRuJ1czdrqVrZ1kZySKXubSg==
=gd3v
-----END PGP SIGNATURE-----



More information about the wine-devel mailing list