aboutsummaryrefslogtreecommitdiffstats
path: root/musl/patches-in-mcm/binutils-2.37/0001-skip-destructors-on-mingw.patch
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-09-07 14:55:46 +0000
committerLaurent Bercot <ska@appnovation.com>2024-09-07 14:55:46 +0000
commit1559cbe1ebcea1dac3f5c3a40a51efedd7766ffc (patch)
tree8a8d1e0c31e3328c9897c3727a555c693ef8a2fc /musl/patches-in-mcm/binutils-2.37/0001-skip-destructors-on-mingw.patch
downloadToolchainFactory-1559cbe1ebcea1dac3f5c3a40a51efedd7766ffc.tar.gz
Initial commit
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'musl/patches-in-mcm/binutils-2.37/0001-skip-destructors-on-mingw.patch')
-rw-r--r--musl/patches-in-mcm/binutils-2.37/0001-skip-destructors-on-mingw.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/musl/patches-in-mcm/binutils-2.37/0001-skip-destructors-on-mingw.patch b/musl/patches-in-mcm/binutils-2.37/0001-skip-destructors-on-mingw.patch
new file mode 100644
index 0000000..2ff2e44
--- /dev/null
+++ b/musl/patches-in-mcm/binutils-2.37/0001-skip-destructors-on-mingw.patch
@@ -0,0 +1,32 @@
+diff -ur a/ld/scripttempl/pep.sc b/ld/scripttempl/pep.sc
+--- a/ld/scripttempl/pep.sc 2021-07-08 06:37:20.000000000 -0500
++++ b/ld/scripttempl/pep.sc 2021-08-28 13:05:42.673576567 -0500
+@@ -127,10 +127,8 @@
+ LONG (0); LONG (0);
+ }
+ ${CONSTRUCTING+
+- /* See comment about __CTOR_LIST__ above. The same reasoning
+- applies here too. */
+- ___DTOR_LIST__ = .;
+- __DTOR_LIST__ = .;
++ PROVIDE(___DTOR_LIST__ = .);
++ PROVIDE(__DTOR_LIST__ = .);
+ LONG (-1); LONG (-1);
+ KEEP (*(.dtors));
+ KEEP (*(.dtor));
+diff -ur a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc
+--- a/ld/scripttempl/pe.sc 2021-07-08 06:37:20.000000000 -0500
++++ b/ld/scripttempl/pe.sc 2021-08-28 13:05:42.673576567 -0500
+@@ -126,10 +126,8 @@
+ LONG (0);
+ }
+ ${CONSTRUCTING+
+- /* See comment about __CTOR_LIST__ above. The same reasoning
+- applies here too. */
+- ___DTOR_LIST__ = .;
+- __DTOR_LIST__ = .;
++ PROVIDE(___DTOR_LIST__ = .);
++ PROVIDE(__DTOR_LIST__ = .);
+ LONG (-1);
+ KEEP(*(.dtors));
+ KEEP(*(.dtor));