binutils feature request: ld --disable-large-address-aware [PATCH]

Christian Franke
Sat Aug 17 16:36:00 GMT 2013

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.
> ( :-)

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.

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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-disable-large-address-aware.patch
Type: text/x-patch
Size: 2360 bytes
Desc: not available
URL: <>
-------------- next part --------------
Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list