From 1559cbe1ebcea1dac3f5c3a40a51efedd7766ffc Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 7 Sep 2024 14:55:46 +0000 Subject: Initial commit Signed-off-by: Laurent Bercot --- .../0001-skip-destructors-on-mingw.patch | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 musl/patches-in-mcm/binutils-2.37/0001-skip-destructors-on-mingw.patch (limited to 'musl/patches-in-mcm/binutils-2.37/0001-skip-destructors-on-mingw.patch') 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)); -- cgit v1.3.1