delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/08/16/05:53:11

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:cc:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=kftxMRYkShb2Cl9HljNxjIC++9O0mP+YF3vQ6tYTyTnC9qzTtjZWw
j4cYYfyfYJCzdmQ75THg82/B906Win+FnyrWMcw1Uc3i57IGJ/RLw/5leJ0mlpux
zVPbptXnuEmKrFRwUGtDO6TLW94KAPiB+mFxPorMMeR4AmE2gPuDlM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:cc:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=L2zqoo5DHasuXx1okpHfbyiIPJE=; b=ywp1YLY86QpQgH5e8lG9wZnyBflG
2+XBnl/szB3l9+3OfwvnUL/RMkvs32oP44Q+swW8cmnEDg2OFQ2+ZXMTZNRoIIFs
yrN17Z9NrOXGFWbjr29IFYsFmKgE53t6Dubz8Fr+Kd0Ye390XCLFQ6+0uqp1pKJs
4G37w4XBPRzTfnc=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-104.2 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=
X-HELO: mout.kundenserver.de
Date: Fri, 16 Aug 2019 11:52:00 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: Agner Fog <agner AT agner DOT org>
Cc: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: Clang is using the wrong memory model
Message-ID: <20190816095200.GU11632@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: Agner Fog <agner AT agner DOT org>, "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
References: <732305300 DOT 268416262 DOT 1565603129541 DOT JavaMail DOT root AT zimbra54-e10 DOT priv DOT proxad DOT net> <024ce5b5-6024-b371-e382-5eef5d1d4a90 AT agner DOT org> <075477ca-e031-39ea-3dfe-bc8bc2fc8fa6 AT agner DOT org> <20190816082603 DOT GR11632 AT calimero DOT vinschen DOT de> <8d594f4d-17e0-447a-8b18-1ed620815e0f AT agner DOT org>
MIME-Version: 1.0
In-Reply-To: <8d594f4d-17e0-447a-8b18-1ed620815e0f@agner.org>
User-Agent: Mutt/1.11.3 (2019-02-01)

--b7fHDr8Jhawzdsln
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Aug 16 11:27, Agner Fog wrote:
> Thanks for your replies.
>=20
> A Cygwin application with -mcmodel=3Dsmall appears to work fine.
>=20
> As I explained, -mcmodel=3Dsmall does something else when the target is
> Windows. It does not require addresses to be below 2GB, it only requires =
the
> distance between a code section and it's data section to be below 2GB.

And that's the point.  The distances are not guranteed to be within
2 GB.  Think errno accessed from another DLL.  Your application works
only by chance.


Corinna

--=20
Corinna Vinschen
Cygwin Maintainer

--b7fHDr8Jhawzdsln
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl1WfMAACgkQ9TYGna5E
T6BC7A//TgioZVKdhxr17vu4OFNWFmn8nbOalnWvmFjmffEF1E+ZSJWZKHXyp21l
57npU8kbMDAeBhRqaK38h7hKn6hSVAAdz5MlTsPosv9X0k0+Q+E8tri9AspQ4FHv
22EhIe+0P6VFOjxjwrrEvuirWqeWXxvcbcFS5qpqwaLj705Prk8HJHe5on1CN/pZ
oixL6oOiQBZlizq9VHgQmrTzxh0ETYFWHl46210TkrY26sn/p0SQzO4xMWDNAIy1
gxaSJn83s3YMqu21+a7kFTUDkehR6cDL1yaWgrjON/zOCHXmiC7NIShMwHs6ETcO
lbsBH0fAIqy4n0JCZv5crNMpaMZN1e3J+ZgTXOV+F83mmtg14V9X+GOt5iWgY/Fd
nbgKbA/F2LIJes7lZvFMhYpC2rFmPOGzIxQiuhZN3Yig1JVYYez0WAx1OZ2STMsI
WPXVSNdtFo1sfGQ1QlHZ2JUg56zIibGh51eXbJkxBHiq1RTk55uNwHpH5J3gMHMC
dFqYly+8AdOZ5Jst/zwstTLoYhZPb1UmGcPHxXR9db8letPBafuok43U0Xn6PYHl
M02Yu085LlI+GwSVgxUDOtnFRYJNiDLUaajYMf4BWuW+4rZQVwL+UY4G7UM6OGiy
czMCpVQn3odAmV6WNpl8uHR5Lx3YITeCSDpifvHL5iXVPG2GSy8=
=h+Yn
-----END PGP SIGNATURE-----

--b7fHDr8Jhawzdsln--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019