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: binutils feature request: ld --disable-large-address-aware [PATCH]


Hi Christian,

On Aug 17 18:36, Christian Franke wrote:
> Christian Franke wrote:
> >A few programs are not compatible with --large-address-aware which
> >is enabled by default in current x86 ld. For example cdrkit,
> >dvd+rw-tools and smartmontools use IOCTL_SCSI_PASS_THROUGH_DIRECT
> >which apparently requires user buffers below 2GiB.
> >
> >Using "LDFLAGS=-Wl,--disable-large-address-aware" would be much
> >easier than adding an extra Cygwin specific "peflags
> >--bigaddr=false *.exe" post-build step.
> >
> >(http://cygwin.com/ml/cygwin/2012-04/msg00342.html :-)
> 
> With the attached patch, "gcc -Wl,--disable-large-address-aware ..."
> works as expected. Documentation update is missing.
> 
> It would probably make sense to add a --enable-large-address-aware
> option as a synonym for --large-address-aware to keep enable/disable
> options consistent.

I think it makes sense to add options to manipulate the Windows-specific
header flags...

> There is a similar issue with --tsaware. It is enabled by default in
> spec file but cannot be disabled in gcc command line. I don't know
> whether there is a need for --disable-tsaware.

... even for tsaware though I don't think it's wise to remove this
flag from executables, given the impact.

Nevertheless, the binutils ML is the right place to send patches
and discuss these things.  You should send your patch their.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgpG3yxPyvlbl.pgp
Description: PGP signature


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