This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Clang is using the wrong memory model


On Aug 16 11:27, Agner Fog wrote:
> Thanks for your replies.
> 
> A Cygwin application with -mcmodel=small appears to work fine.
> 
> As I explained, -mcmodel=small 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

-- 
Corinna Vinschen
Cygwin Maintainer

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]