binutils feature request: ld --disable-large-address-aware [PATCH]
Christian Franke
Christian.Franke@t-online.de
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.
>
> (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.
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.
Christian
-------------- 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: <http://cygwin.com/pipermail/cygwin/attachments/20130817/8ca58fac/attachment.bin>
-------------- next part --------------
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list