From a2229cd0a1c6557417a406dc157087c416d8461d Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 15 Aug 2019 18:00:57 -0400 Subject: binutils-2.24.51: refactored and separated mdso and midipix target bits. --- binutils-2.24.51.midipix.patch | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/binutils-2.24.51.midipix.patch b/binutils-2.24.51.midipix.patch index c9a4f73..70a4ff0 100644 --- a/binutils-2.24.51.midipix.patch +++ b/binutils-2.24.51.midipix.patch @@ -1,15 +1,13 @@ -diff -ru --new-file a/bfd/midipix.h b/bfd/midipix.h ---- a/bfd/midipix.h 1969-12-31 19:00:00.000000000 -0500 -+++ b/bfd/midipix.h 2015-03-11 17:23:18.492453732 -0400 -@@ -0,0 +1,13 @@ +diff -ru --new-file a/bfd/pemdso.h b/bfd/pemdso.h +--- a/bfd/pemdso.h 1969-12-31 19:00:00.000000000 -0500 ++++ b/bfd/pemdso.h 2019-08-15 07:00:00.000000000 -0400 +@@ -0,0 +1,11 @@ +#ifndef MIDIPIX_H +#define MIDIPIX_H + +#include +#include + -+#define PE_TARGET_MIDIPIX -+ +#define PE_DSO_SUFFIX ".so" +#define PE_DSOLIB_SUFFIX ".dso.a" +#define PE_IMPLIB_SUFFIX ".lib.a" @@ -17,7 +15,7 @@ diff -ru --new-file a/bfd/midipix.h b/bfd/midipix.h +#endif --- a/ld/configure 2014-07-03 01:37:48.000000000 -0400 +++ b/ld/configure 2015-03-11 20:01:08.888756786 -0400 -@@ -19773,3 +19773,24 @@ +@@ -19773,3 +19773,27 @@ $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi @@ -37,9 +35,12 @@ diff -ru --new-file a/bfd/midipix.h b/bfd/midipix.h +case $target_os in + *midipix*) + cat >> peimplib.h << EOF ++/* PE target-specific bits, generated by ld/configure */ ++#ifndef PE_TARGET_MIDIPIX ++#define PE_TARGET_MIDIPIX ++#endif + -+/* midipix supersystem support */ -+#include "midipix.h" ++#include "pemdso.h" +EOF +esac diff -ru --new-file a/ld/emultempl/pe.em b/ld/emultempl/pe.em -- cgit v1.2.3