This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

[PATCH] cygwin: fix --tsaware, add --large-address-aware


This patch fixes two issues with LINK_SPEC on Cygwin targets:

1) --tsaware makes sense only for EXEs, not DLLs.

2) Under WoW64 (32-bit Cygwin on 64-bit Windows), Cygwin applications can access up to 4 GiB of address space (for DLLs, Cygwin heap, mmap()s, etc.) if they are linked with --large-address-aware. Because of how Cygwin implements fork(), the ability to use this extra space is a huge benefit. This flag too is only for EXEs, not DLLs.

Patch attached.

--
Yaakov Selkowitz
Associate Software Engineer, ARM
Red Hat, Inc.

Attachment: 0004-cygwin-link-spec.patch
Description: Text document


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