Commit 04017283 by Yaakov Selkowitz Committed by Kai Tietz

cygwin.h (LINK_SPEC): Pass --tsaware flag only when building executables, not DLLs.

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
parent ce8126f5
2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com> 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 * config/i386/cygwin-stdint.h: Throughout, make type
definitions dependent on target architecture, not host. definitions dependent on target architecture, not host.
......
...@@ -66,7 +66,8 @@ along with GCC; see the file COPYING3. If not see ...@@ -66,7 +66,8 @@ along with GCC; see the file COPYING3. If not see
%{static:-Bstatic} %{!static:-Bdynamic} \ %{static:-Bstatic} %{!static:-Bdynamic} \
%{shared|mdll: " SUB_LINK_ENTRY " --enable-auto-image-base} \ %{shared|mdll: " SUB_LINK_ENTRY " --enable-auto-image-base} \
%(shared_libgcc_undefs) \ %(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. */ /* Cygwin64 will have a 64-bit long type. */
#undef LONG_TYPE_SIZE #undef LONG_TYPE_SIZE
......
...@@ -120,7 +120,8 @@ along with GCC; see the file COPYING3. If not see ...@@ -120,7 +120,8 @@ along with GCC; see the file COPYING3. If not see
%{shared: --shared} %{mdll:--dll} \ %{shared: --shared} %{mdll:--dll} \
%{static:-Bstatic} %{!static:-Bdynamic} \ %{static:-Bstatic} %{!static:-Bdynamic} \
%{shared|mdll: --enable-auto-image-base -e __cygwin_dll_entry@12} \ %{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, /* Binutils does not handle weak symbols from dlls correctly. For now,
do not use them unnecessarily in gthr-posix.h. */ do not use them unnecessarily in gthr-posix.h. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment