Skip to content

Commit 98a65d4

Browse files
Blackhexgithub-actions
authored andcommitted
0002-Cygwin-add-dummy-pthread-tsaware-and-large-address-a.patch
1 parent 29dcd67 commit 98a65d4

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

gcc/config/i386/cygwin-w64.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ along with GCC; see the file COPYING3. If not see
6767
%{shared|mdll: " SUB_LINK_ENTRY " --enable-auto-image-base} \
6868
%(shared_libgcc_undefs) \
6969
--dll-search-prefix=cyg \
70+
%{rdynamic: --export-all-symbols} \
7071
%{!shared: %{!mdll: %{" SPEC_32 ":--large-address-aware} --tsaware}}"
7172

7273
/* Cygwin64 will have a 64-bit long type. */

gcc/config/i386/cygwin.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ along with GCC; see the file COPYING3. If not see
9393

9494
/* To implement C++ function replacement we always wrap the cxx
9595
malloc-like operators. See N2800 #17.6.4.6 [replacement.functions] */
96+
#undef CXX_WRAP_SPEC_LIST
9697
#define CXX_WRAP_SPEC_LIST " \
9798
--wrap _Znwj \
9899
--wrap _Znaj \
@@ -131,6 +132,7 @@ along with GCC; see the file COPYING3. If not see
131132
%{static:-Bstatic} %{!static:-Bdynamic} \
132133
%{shared|mdll: --enable-auto-image-base -e __cygwin_dll_entry@12} \
133134
--dll-search-prefix=cyg \
135+
%{rdynamic: --export-all-symbols} \
134136
%{!shared: %{!mdll: --large-address-aware --tsaware}}"
135137

136138
/* Binutils does not handle weak symbols from dlls correctly. For now,

gcc/config/i386/cygwin.opt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@
2121
pthread
2222
Driver
2323

24+
rdynamic
25+
Driver
26+
2427
; Retain blank line above

0 commit comments

Comments
 (0)