summaryrefslogtreecommitdiff
path: root/binutils-2.24.51.midipix.patch
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-03-11 21:33:51 -0400
committermidipix <writeonce@midipix.org>2015-03-11 21:33:51 -0400
commit9a646582a6d0c893799b5a1c79f5210d10cf3292 (patch)
tree1893c7238402afc3905499ccd2541b9bf6734c7f /binutils-2.24.51.midipix.patch
parent21ad27f063a73c5ea8734e6ea9edd28187ff0733 (diff)
downloadchainport-9a646582a6d0c893799b5a1c79f5210d10cf3292.tar.bz2
chainport-9a646582a6d0c893799b5a1c79f5210d10cf3292.tar.xz
binutils-2.24.51: initial patch: allow the symbol 'environ' to
be exported by PE images, but leave it excluded by default so that non-midipix PE targets remain unaffected. signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information.
Diffstat (limited to 'binutils-2.24.51.midipix.patch')
-rw-r--r--binutils-2.24.51.midipix.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/binutils-2.24.51.midipix.patch b/binutils-2.24.51.midipix.patch
index 0aeea4f..9355376 100644
--- a/binutils-2.24.51.midipix.patch
+++ b/binutils-2.24.51.midipix.patch
@@ -366,3 +366,25 @@ diff -ru --new-file a/binutils/winduni.c b/binutils/winduni.c
{ 1, "WINDOWS-1252" },
{ 437, "MS-ANSI" },
{ 737, "MS-GREEK" },
+diff -ru --new-file a/ld/pe-dll.c b/ld/pe-dll.c
+--- a/ld/pe-dll.c 2014-07-03 01:37:48.000000000 -0400
++++ b/ld/pe-dll.c 2015-02-28 09:36:05.942808235 -0500
+@@ -40,6 +40,7 @@
+ #include "coff/internal.h"
+ #include "../bfd/libcoff.h"
+ #include "deffile.h"
++#include "peimplib.h"
+
+ #ifdef pe_use_x86_64
+
+@@ -234,7 +235,11 @@
+ { STRING_COMMA_LEN ("impure_ptr") },
+ { STRING_COMMA_LEN ("_impure_ptr") },
+ { STRING_COMMA_LEN ("_fmode") },
++ #ifdef PE_TARGET_MIDIPIX
++ /* (default) excluded symbols are defined by the caller (specs, etc.) */
++ #else
+ { STRING_COMMA_LEN ("environ") },
++ #endif
+ { NULL, 0 }
+ };