From 8dae85b46a204b418528ed4154cf315c81657e87 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Sun, 24 Aug 2014 13:49:03 -0500 Subject: Patch ld to not export __dso_handle. --- cygwin-binutils.spec | 7 ++++++- ld-pe-dll-__dso_handle.patch | 12 ++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 ld-pe-dll-__dso_handle.patch diff --git a/cygwin-binutils.spec b/cygwin-binutils.spec index ab25d95..ffb3a62 100644 --- a/cygwin-binutils.spec +++ b/cygwin-binutils.spec @@ -3,7 +3,7 @@ Name: cygwin-binutils Version: 2.24.51 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Cross-compiled version of binutils for Cygwin environments License: GPLv2+ and LGPLv2+ and GPLv3+ and LGPLv3+ @@ -17,6 +17,7 @@ Source0: binutils-gdb-%{version}.tar.bz2 %endif Patch0: w32api-sysroot.patch Patch1: binutils-textdomain.patch +Patch2: ld-pe-dll-__dso_handle.patch BuildRequires: gettext-devel @@ -72,6 +73,7 @@ understand Cygwin executables and DLLs. %endif %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build @@ -279,6 +281,9 @@ cat cygwin-opcodes.lang >> cygwin-binutils.lang %changelog +* Mon Aug 11 2014 Yaakov Selkowitz - 2.24.51-3 +- Patch ld to not export __dso_handle. + * Tue Jun 10 2014 Yaakov Selkowitz - 2.24.51-2 - Updated snapshot to fix resource section alignment. diff --git a/ld-pe-dll-__dso_handle.patch b/ld-pe-dll-__dso_handle.patch new file mode 100644 index 0000000..eb716bd --- /dev/null +++ b/ld-pe-dll-__dso_handle.patch @@ -0,0 +1,12 @@ +diff --git a/ld/pe-dll.c b/ld/pe-dll.c +index d38f30d..c877e54 100644 +--- a/ld/pe-dll.c ++++ b/ld/pe-dll.c +@@ -227,6 +227,7 @@ static const autofilter_entry_type autofilter_symbollist_i386[] = + { STRING_COMMA_LEN ("cygwin_premain1") }, + { STRING_COMMA_LEN ("cygwin_premain2") }, + { STRING_COMMA_LEN ("cygwin_premain3") }, ++ { STRING_COMMA_LEN ("__dso_handle") }, + /* Runtime pseudo-reloc. */ + { STRING_COMMA_LEN ("_pei386_runtime_relocator") }, + { STRING_COMMA_LEN ("do_pseudo_reloc") }, -- cgit