summaryrefslogtreecommitdiffstats
path: root/1002-cygwin-ld-flags.patch
blob: ca9fdfffb0da91508a7e1754af7b4155821130f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff -up gcc-11.2.0/gcc/config/i386/cygwin.h.dynamicbase gcc-11.2.0/gcc/config/i386/cygwin.h
--- gcc-11.2.0/gcc/config/i386/cygwin.h.dynamicbase	2021-10-19 12:13:30.662685331 -0400
+++ gcc-11.2.0/gcc/config/i386/cygwin.h	2021-10-19 12:14:31.539839223 -0400
@@ -138,7 +138,7 @@ along with GCC; see the file COPYING3.
   %{shared: %{mdll: %eshared and mdll are not compatible}} \
   %{shared: --shared} %{mdll:--dll} \
   %{static:-Bstatic} %{!static:-Bdynamic} \
-  %{shared|mdll: --enable-auto-image-base -e __cygwin_dll_entry@12} \
+  %{shared|mdll: --disable-dynamicbase --enable-auto-image-base -e __cygwin_dll_entry@12} \
   --dll-search-prefix=cyg \
   %{rdynamic: --export-all-symbols} \
   %{!shared: %{!mdll: --large-address-aware --tsaware}}"
diff -up gcc-11.2.0/gcc/config/i386/cygwin-w64.h.dynamicbase gcc-11.2.0/gcc/config/i386/cygwin-w64.h
--- gcc-11.2.0/gcc/config/i386/cygwin-w64.h.dynamicbase	2021-10-19 14:22:45.560706087 -0400
+++ gcc-11.2.0/gcc/config/i386/cygwin-w64.h	2021-10-19 14:23:17.766770713 -0400
@@ -64,7 +64,7 @@ along with GCC; see the file COPYING3.
   %{shared: %{mdll: %eshared and mdll are not compatible}} \
   %{shared: --shared} %{mdll:--dll} \
   %{static:-Bstatic} %{!static:-Bdynamic} \
-  %{shared|mdll: " SUB_LINK_ENTRY " --enable-auto-image-base} \
+  %{shared|mdll: " SUB_LINK_ENTRY " --disable-dynamicbase --enable-auto-image-base} \
   %(shared_libgcc_undefs) \
   --dll-search-prefix=cyg \
   %{rdynamic: --export-all-symbols} \