]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cygwin.h (LINK_SPEC): Pass --tsaware flag only when building executables, not DLLs.
authorYaakov Selkowitz <yselkowi@redhat.com>
Tue, 19 Aug 2014 15:03:42 +0000 (15:03 +0000)
committerKai Tietz <ktietz@gcc.gnu.org>
Tue, 19 Aug 2014 15:03:42 +0000 (17:03 +0200)
2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>

        * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
        when building executables, not DLLs.  Add --large-address-aware
        under the same conditions.
        * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
        when building executables, not DLLs.  Add --large-address-aware
        under the same conditions when using -m32.

From-SVN: r214158

gcc/ChangeLog
gcc/config/i386/cygwin-w64.h
gcc/config/i386/cygwin.h

index f7a84c0b74cdf3c542c92193c2f1061fba919114..a4d6c72aefd0813d88ae3a2d265d557280b95fb9 100644 (file)
@@ -1,5 +1,12 @@
 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
 
+       * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
+       when building executables, not DLLs.  Add --large-address-aware
+       under the same conditions.
+       * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
+       when building executables, not DLLs.  Add --large-address-aware
+       under the same conditions when using -m32.
+
        * config/i386/cygwin-stdint.h: Throughout, make type
        definitions dependent on target architecture, not host.
 
index 06a6cd98c1bf748301c3ce5c1be9b1f8f8eb91d7..0ecb37b2ff0e8a27255ec984c9573310263d391f 100644 (file)
@@ -66,7 +66,8 @@ along with GCC; see the file COPYING3.  If not see
   %{static:-Bstatic} %{!static:-Bdynamic} \
   %{shared|mdll: " SUB_LINK_ENTRY " --enable-auto-image-base} \
   %(shared_libgcc_undefs) \
-  --dll-search-prefix=cyg -tsaware"
+  --dll-search-prefix=cyg \
+  %{!shared: %{!mdll: %{" SPEC_32 ":--large-address-aware} --tsaware}}"
 
 /* Cygwin64 will have a 64-bit long type. */
 #undef LONG_TYPE_SIZE
index 165d3aae22927b34b137d6bc262701bb1c566de2..0ea29ce0fc877fcae694165cc514b72c234dae1a 100644 (file)
@@ -120,7 +120,8 @@ along with GCC; see the file COPYING3.  If not see
   %{shared: --shared} %{mdll:--dll} \
   %{static:-Bstatic} %{!static:-Bdynamic} \
   %{shared|mdll: --enable-auto-image-base -e __cygwin_dll_entry@12} \
-  --dll-search-prefix=cyg -tsaware"
+  --dll-search-prefix=cyg \
+  %{!shared: %{!mdll: --large-address-aware --tsaware}}"
 
 /* Binutils does not handle weak symbols from dlls correctly.  For now,
    do not use them unnecessarily in gthr-posix.h.  */