xref: /minix3/external/gpl3/binutils/patches/0001-minix.patch (revision c9ea9e7af84fcba485b32ccd2c85edb945b1f323)
14af66e56SLionel Sambucdiff -rNU3 dist.nbsd/bfd/config.bfd dist/bfd/config.bfd
2*c9ea9e7aSLionel Sambuc--- dist.nbsd/bfd/config.bfd	2014-02-17 14:34:49.407022105 +0100
3*c9ea9e7aSLionel Sambuc+++ dist/bfd/config.bfd	2014-02-17 16:13:26.634958919 +0100
4*c9ea9e7aSLionel Sambuc@@ -316,7 +316,7 @@
5d19d7d58SLionel Sambuc     ;;
6d19d7d58SLionel Sambuc   arm-*-elf | arm-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
7d19d7d58SLionel Sambuc   arm*-*-uclinux* | arm-*-kfreebsd*-gnu | \
8d19d7d58SLionel Sambuc-  arm*-*-eabi* )
9d19d7d58SLionel Sambuc+  arm*-*-eabi* | arm*-*-minix*)
10d19d7d58SLionel Sambuc     targ_defvec=bfd_elf32_littlearm_vec
11d19d7d58SLionel Sambuc     targ_selvecs=bfd_elf32_bigarm_vec
12d19d7d58SLionel Sambuc     ;;
13*c9ea9e7aSLionel Sambuc@@ -711,6 +711,9 @@
14d19d7d58SLionel Sambuc   i[3-7]86-none-*)
15d19d7d58SLionel Sambuc     targ_defvec=i386coff_vec
16d19d7d58SLionel Sambuc     ;;
17d19d7d58SLionel Sambuc+  i[3-7]86-*-minix)
18d19d7d58SLionel Sambuc+    targ_defvec=bfd_elf32_i386_minix_vec
19d19d7d58SLionel Sambuc+    ;;
20d19d7d58SLionel Sambuc   i[3-7]86-*-aout* | i[3-7]86*-*-vsta*)
21d19d7d58SLionel Sambuc     targ_defvec=i386aout_vec
22d19d7d58SLionel Sambuc     ;;
234af66e56SLionel Sambucdiff -rNU3 dist.nbsd/bfd/configure dist/bfd/configure
24*c9ea9e7aSLionel Sambuc--- dist.nbsd/bfd/configure	2014-02-17 14:34:49.413688892 +0100
25*c9ea9e7aSLionel Sambuc+++ dist/bfd/configure	2014-02-17 16:13:26.638292303 +0100
26*c9ea9e7aSLionel Sambuc@@ -15232,6 +15232,7 @@
27d19d7d58SLionel Sambuc     bfd_elf32_i370_vec)		tb="$tb elf32-i370.lo elf32.lo $elf" ;;
28*c9ea9e7aSLionel Sambuc     bfd_elf32_i386_sol2_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
29*c9ea9e7aSLionel Sambuc     bfd_elf32_i386_freebsd_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
30*c9ea9e7aSLionel Sambuc+    bfd_elf32_i386_minix_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
31*c9ea9e7aSLionel Sambuc     bfd_elf32_i386_nacl_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
32*c9ea9e7aSLionel Sambuc     bfd_elf32_i386_vxworks_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
33*c9ea9e7aSLionel Sambuc     bfd_elf32_i386_vec)		tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
344af66e56SLionel Sambucdiff -rNU3 dist.nbsd/bfd/configure.in dist/bfd/configure.in
35*c9ea9e7aSLionel Sambuc--- dist.nbsd/bfd/configure.in	2014-02-17 14:34:49.393688529 +0100
36*c9ea9e7aSLionel Sambuc+++ dist/bfd/configure.in	2014-02-17 16:13:26.638292303 +0100
37*c9ea9e7aSLionel Sambuc@@ -724,6 +724,7 @@
38d19d7d58SLionel Sambuc     bfd_elf32_i370_vec)		tb="$tb elf32-i370.lo elf32.lo $elf" ;;
39*c9ea9e7aSLionel Sambuc     bfd_elf32_i386_sol2_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
40*c9ea9e7aSLionel Sambuc     bfd_elf32_i386_freebsd_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
41*c9ea9e7aSLionel Sambuc+    bfd_elf32_i386_minix_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
42*c9ea9e7aSLionel Sambuc     bfd_elf32_i386_nacl_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
43*c9ea9e7aSLionel Sambuc     bfd_elf32_i386_vxworks_vec)	tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
44*c9ea9e7aSLionel Sambuc     bfd_elf32_i386_vec)		tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
454af66e56SLionel Sambucdiff -rNU3 dist.nbsd/bfd/elf32-i386.c dist/bfd/elf32-i386.c
46*c9ea9e7aSLionel Sambuc--- dist.nbsd/bfd/elf32-i386.c	2014-02-17 14:34:49.393688529 +0100
47*c9ea9e7aSLionel Sambuc+++ dist/bfd/elf32-i386.c	2014-02-17 16:13:26.644959071 +0100
48*c9ea9e7aSLionel Sambuc@@ -4979,6 +4979,18 @@
49d19d7d58SLionel Sambuc
50d19d7d58SLionel Sambuc #include "elf32-target.h"
51d19d7d58SLionel Sambuc
52d19d7d58SLionel Sambuc+/* MINIX3 support.  */
53d19d7d58SLionel Sambuc+
54d19d7d58SLionel Sambuc+#undef	TARGET_LITTLE_SYM
55d19d7d58SLionel Sambuc+#define	TARGET_LITTLE_SYM		bfd_elf32_i386_minix_vec
56d19d7d58SLionel Sambuc+#undef	TARGET_LITTLE_NAME
57d19d7d58SLionel Sambuc+#define	TARGET_LITTLE_NAME		"elf32-i386-minix"
58d19d7d58SLionel Sambuc+
59d19d7d58SLionel Sambuc+#undef	elf32_bed
60d19d7d58SLionel Sambuc+#define	elf32_bed				elf32_i386_minix_bed
61d19d7d58SLionel Sambuc+
62d19d7d58SLionel Sambuc+#include "elf32-target.h"
63d19d7d58SLionel Sambuc+
64d19d7d58SLionel Sambuc /* FreeBSD support.  */
65d19d7d58SLionel Sambuc
66d19d7d58SLionel Sambuc #undef	TARGET_LITTLE_SYM
674af66e56SLionel Sambucdiff -rNU3 dist.nbsd/bfd/targets.c dist/bfd/targets.c
68*c9ea9e7aSLionel Sambuc--- dist.nbsd/bfd/targets.c	2014-02-17 14:34:49.417022286 +0100
69*c9ea9e7aSLionel Sambuc+++ dist/bfd/targets.c	2014-02-17 16:13:26.644959071 +0100
70*c9ea9e7aSLionel Sambuc@@ -624,6 +624,7 @@
71d19d7d58SLionel Sambuc extern const bfd_target bfd_elf32_hppa_vec;
72d19d7d58SLionel Sambuc extern const bfd_target bfd_elf32_i370_vec;
73d19d7d58SLionel Sambuc extern const bfd_target bfd_elf32_i386_freebsd_vec;
74d19d7d58SLionel Sambuc+extern const bfd_target bfd_elf32_i386_minix_vec;
754af66e56SLionel Sambuc extern const bfd_target bfd_elf32_i386_nacl_vec;
76d19d7d58SLionel Sambuc extern const bfd_target bfd_elf32_i386_sol2_vec;
77d19d7d58SLionel Sambuc extern const bfd_target bfd_elf32_i386_vxworks_vec;
784af66e56SLionel Sambucdiff -rNU3 dist.nbsd/config.guess dist/config.guess
79*c9ea9e7aSLionel Sambuc--- dist.nbsd/config.guess	2014-02-17 14:34:49.417022286 +0100
80*c9ea9e7aSLionel Sambuc+++ dist/config.guess	2014-02-17 16:13:26.644959071 +0100
81*c9ea9e7aSLionel Sambuc@@ -872,8 +872,8 @@
82d19d7d58SLionel Sambuc 	# other systems with GNU libc and userland
83d19d7d58SLionel Sambuc 	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
84d19d7d58SLionel Sambuc 	exit ;;
85d19d7d58SLionel Sambuc-    i*86:Minix:*:*)
86d19d7d58SLionel Sambuc-	echo ${UNAME_MACHINE}-pc-minix
87d19d7d58SLionel Sambuc+    *:Minix:*:*)
88d19d7d58SLionel Sambuc+        echo ${UNAME_MACHINE}-elf32-minix
89d19d7d58SLionel Sambuc 	exit ;;
90d19d7d58SLionel Sambuc     alpha:Linux:*:*)
91d19d7d58SLionel Sambuc 	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
92*c9ea9e7aSLionel Sambucdiff -rNU3 dist.nbsd/configure dist/configure
93*c9ea9e7aSLionel Sambuc--- dist.nbsd/configure	2014-02-17 14:34:49.430355862 +0100
94*c9ea9e7aSLionel Sambuc+++ dist/configure	2014-02-17 16:13:26.648292455 +0100
95*c9ea9e7aSLionel Sambuc@@ -2869,7 +2869,7 @@
96*c9ea9e7aSLionel Sambuc       *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
97*c9ea9e7aSLionel Sambuc       | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
98*c9ea9e7aSLionel Sambuc       | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
99*c9ea9e7aSLionel Sambuc-      | *-*-solaris2* | *-*-nto* | *-*-nacl*)
100*c9ea9e7aSLionel Sambuc+      | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-minix*)
101*c9ea9e7aSLionel Sambuc         case "${target}" in
102*c9ea9e7aSLionel Sambuc           *-*-linux*aout* | *-*-linux*oldld*)
103*c9ea9e7aSLionel Sambuc             ;;
1044af66e56SLionel Sambucdiff -rNU3 dist.nbsd/gas/config/tc-i386.h dist/gas/config/tc-i386.h
105*c9ea9e7aSLionel Sambuc--- dist.nbsd/gas/config/tc-i386.h	2014-02-17 14:34:48.917013206 +0100
106*c9ea9e7aSLionel Sambuc+++ dist/gas/config/tc-i386.h	2014-02-17 16:13:26.648292455 +0100
107*c9ea9e7aSLionel Sambuc@@ -72,6 +72,10 @@
108d19d7d58SLionel Sambuc #define ELF_TARGET_FORMAT64	"elf64-x86-64-sol2"
109d19d7d58SLionel Sambuc #endif
110d19d7d58SLionel Sambuc
111d19d7d58SLionel Sambuc+#ifdef TE_MINIX
112d19d7d58SLionel Sambuc+#define ELF_TARGET_FORMAT      "elf32-i386-minix"
113d19d7d58SLionel Sambuc+#endif
114d19d7d58SLionel Sambuc+
115d19d7d58SLionel Sambuc #ifndef ELF_TARGET_FORMAT
116d19d7d58SLionel Sambuc #define ELF_TARGET_FORMAT	"elf32-i386"
117d19d7d58SLionel Sambuc #endif
1184af66e56SLionel Sambucdiff -rNU3 dist.nbsd/gas/config/te-minix.h dist/gas/config/te-minix.h
1194af66e56SLionel Sambuc--- dist.nbsd/gas/config/te-minix.h	1970-01-01 01:00:00.000000000 +0100
120*c9ea9e7aSLionel Sambuc+++ dist/gas/config/te-minix.h	2014-02-17 16:13:26.648292455 +0100
121d19d7d58SLionel Sambuc@@ -0,0 +1,9 @@
122d19d7d58SLionel Sambuc+#define TE_MINIX 1
123d19d7d58SLionel Sambuc+
124d19d7d58SLionel Sambuc+/* Added these, because if we don't know what we're targeting we may
125d19d7d58SLionel Sambuc+   need an assembler version of libgcc, and that will use local
126d19d7d58SLionel Sambuc+   labels.  */
127d19d7d58SLionel Sambuc+#define LOCAL_LABELS_DOLLAR 1
128d19d7d58SLionel Sambuc+#define LOCAL_LABELS_FB 1
129d19d7d58SLionel Sambuc+
130d19d7d58SLionel Sambuc+#include "obj-format.h"
1314af66e56SLionel Sambucdiff -rNU3 dist.nbsd/gas/configure dist/gas/configure
132*c9ea9e7aSLionel Sambuc--- dist.nbsd/gas/configure	2014-02-17 14:34:48.930346782 +0100
133*c9ea9e7aSLionel Sambuc+++ dist/gas/configure	2014-02-17 16:13:26.651625840 +0100
134d19d7d58SLionel Sambuc@@ -6127,6 +6127,10 @@
135d19d7d58SLionel Sambuc   fi
136d19d7d58SLionel Sambuc   ;;
137d19d7d58SLionel Sambuc
138d19d7d58SLionel Sambuc+minix*)
139d19d7d58SLionel Sambuc+  lt_cv_deplibs_check_method=pass_all
140d19d7d58SLionel Sambuc+  ;;
141d19d7d58SLionel Sambuc+
142d19d7d58SLionel Sambuc gnu*)
143d19d7d58SLionel Sambuc   lt_cv_deplibs_check_method=pass_all
144d19d7d58SLionel Sambuc   ;;
1454af66e56SLionel Sambucdiff -rNU3 dist.nbsd/gas/configure.tgt dist/gas/configure.tgt
146*c9ea9e7aSLionel Sambuc--- dist.nbsd/gas/configure.tgt	2014-02-17 14:34:48.930346782 +0100
147*c9ea9e7aSLionel Sambuc+++ dist/gas/configure.tgt	2014-02-17 16:13:26.651625840 +0100
148*c9ea9e7aSLionel Sambuc@@ -448,6 +448,8 @@
149d19d7d58SLionel Sambuc   *-*-elf | *-*-sysv4*)			fmt=elf ;;
150d19d7d58SLionel Sambuc   *-*-solaris*)				fmt=elf em=solaris ;;
151d19d7d58SLionel Sambuc   *-*-aros*)				fmt=elf em=linux ;;
152c566d462SLionel Sambuc+  i*-*-minix*)                       fmt=elf em=minix ;;
153c566d462SLionel Sambuc+  arm*-*-minix*)                       fmt=elf em=armeabi ;;
154d19d7d58SLionel Sambuc   *-*-vxworks* | *-*-windiss)		fmt=elf em=vxworks ;;
155d19d7d58SLionel Sambuc   *-*-netware)				fmt=elf em=netware ;;
156d19d7d58SLionel Sambuc esac
1574af66e56SLionel Sambucdiff -rNU3 dist.nbsd/ld/configure.tgt dist/ld/configure.tgt
158*c9ea9e7aSLionel Sambuc--- dist.nbsd/ld/configure.tgt	2014-02-17 14:34:49.170351140 +0100
159*c9ea9e7aSLionel Sambuc+++ dist/ld/configure.tgt	2014-02-17 16:13:26.651625840 +0100
160*c9ea9e7aSLionel Sambuc@@ -82,6 +82,8 @@
1614af66e56SLionel Sambuc armeb-*-elf)		targ_emul=armelfb ;;
1624af66e56SLionel Sambuc arm-*-elf | arm*-*-eabi*)
1634af66e56SLionel Sambuc 	  		targ_emul=armelf ;;
1644af66e56SLionel Sambuc+arm*-*-minix*)	targ_emul=armelf_minix
1654af66e56SLionel Sambuc+			targ_extra_emuls="armelf" ;;
1664af66e56SLionel Sambuc arm*-*-symbianelf*)     targ_emul=armsymbian;;
1674af66e56SLionel Sambuc arm-*-kaos*)		targ_emul=armelf ;;
1684af66e56SLionel Sambuc arm9e-*-elf)		targ_emul=armelf ;;
169*c9ea9e7aSLionel Sambuc@@ -208,6 +210,8 @@
1704af66e56SLionel Sambuc i[3-7]86-*-bsd386)	targ_emul=i386bsd ;;
1714af66e56SLionel Sambuc i[3-7]86-*-bsdi*)	targ_emul=i386bsd ;;
1724af66e56SLionel Sambuc i[3-7]86-*-aout)	targ_emul=i386aout ;;
1734af66e56SLionel Sambuc+i[3-7]86-*-minix)	targ_emul=elf_i386_minix
1744af66e56SLionel Sambuc+			targ_extra_emuls="elf_i386" ;;
1754af66e56SLionel Sambuc i[3-7]86-*-linux*aout*)	targ_emul=i386linux
1764af66e56SLionel Sambuc 			targ_extra_emuls=elf_i386
1774af66e56SLionel Sambuc 			tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'` ;;
1784af66e56SLionel Sambucdiff -rNU3 dist.nbsd/ld/emulparams/armelf_minix.sh dist/ld/emulparams/armelf_minix.sh
1794af66e56SLionel Sambuc--- dist.nbsd/ld/emulparams/armelf_minix.sh	1970-01-01 01:00:00.000000000 +0100
180*c9ea9e7aSLionel Sambuc+++ dist/ld/emulparams/armelf_minix.sh	2014-02-17 16:13:26.651625840 +0100
1814af66e56SLionel Sambuc@@ -0,0 +1,15 @@
1824af66e56SLionel Sambuc+. ${srcdir}/emulparams/armelf.sh
1834af66e56SLionel Sambuc+. ${srcdir}/emulparams/elf_minix.sh
1844af66e56SLionel Sambuc+OUTPUT_FORMAT="elf32-littlearm"
1854af66e56SLionel Sambuc+MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
1864af66e56SLionel Sambuc+COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
1874af66e56SLionel Sambuc+
1884af66e56SLionel Sambuc+DATA_START_SYMBOLS='PROVIDE (__data_start = .);';
1894af66e56SLionel Sambuc+
1904af66e56SLionel Sambuc+# Dynamic libraries support
1914af66e56SLionel Sambuc+GENERATE_SHLIB_SCRIPT=yes
1924af66e56SLionel Sambuc+TARGET2_TYPE=got-rel
1934af66e56SLionel Sambuc+
1944af66e56SLionel Sambuc+GENERATE_PIE_SCRIPT=yes
1954af66e56SLionel Sambuc+
1964af66e56SLionel Sambuc+unset EMBEDDED
1974af66e56SLionel Sambucdiff -rNU3 dist.nbsd/ld/emulparams/elf_i386_minix.sh dist/ld/emulparams/elf_i386_minix.sh
1984af66e56SLionel Sambuc--- dist.nbsd/ld/emulparams/elf_i386_minix.sh	1970-01-01 01:00:00.000000000 +0100
199*c9ea9e7aSLionel Sambuc+++ dist/ld/emulparams/elf_i386_minix.sh	2014-02-17 16:13:26.651625840 +0100
2004af66e56SLionel Sambuc@@ -0,0 +1,3 @@
2014af66e56SLionel Sambuc+. ${srcdir}/emulparams/elf_i386.sh
2024af66e56SLionel Sambuc+. ${srcdir}/emulparams/elf_minix.sh
2034af66e56SLionel Sambuc+OUTPUT_FORMAT="elf32-i386-minix"
2044af66e56SLionel Sambucdiff -rNU3 dist.nbsd/ld/emulparams/elf_minix.sh dist/ld/emulparams/elf_minix.sh
2054af66e56SLionel Sambuc--- dist.nbsd/ld/emulparams/elf_minix.sh	1970-01-01 01:00:00.000000000 +0100
206*c9ea9e7aSLionel Sambuc+++ dist/ld/emulparams/elf_minix.sh	2014-02-17 16:13:26.651625840 +0100
2074af66e56SLionel Sambuc@@ -0,0 +1 @@
2084af66e56SLionel Sambuc+ELF_INTERPRETER_NAME=\"/libexec/ld-elf.so.1\"
209*c9ea9e7aSLionel Sambucdiff -rNU3 dist.nbsd/ld/Makefile.in dist/ld/Makefile.in
210*c9ea9e7aSLionel Sambuc--- dist.nbsd/ld/Makefile.in	2014-02-17 14:34:49.163684353 +0100
211*c9ea9e7aSLionel Sambuc+++ dist/ld/Makefile.in	2014-02-17 16:13:26.651625840 +0100
212*c9ea9e7aSLionel Sambuc@@ -450,6 +450,7 @@
213*c9ea9e7aSLionel Sambuc 	earmelf_fbsd.c \
214*c9ea9e7aSLionel Sambuc 	earmelf_linux.c \
215*c9ea9e7aSLionel Sambuc 	earmelf_linux_eabi.c \
216*c9ea9e7aSLionel Sambuc+	earmelf_minix.c \
217*c9ea9e7aSLionel Sambuc 	earmelf_nacl.c \
218*c9ea9e7aSLionel Sambuc 	earmelf_nbsd.c \
219*c9ea9e7aSLionel Sambuc 	earmelf_nbsd_eabi.c \
220*c9ea9e7aSLionel Sambuc@@ -574,6 +575,7 @@
221*c9ea9e7aSLionel Sambuc 	eelf_i386_chaos.c \
222*c9ea9e7aSLionel Sambuc 	eelf_i386_fbsd.c \
223*c9ea9e7aSLionel Sambuc 	eelf_i386_ldso.c \
224*c9ea9e7aSLionel Sambuc+	eelf_i386_minix.c \
225*c9ea9e7aSLionel Sambuc 	eelf_i386_nacl.c \
226*c9ea9e7aSLionel Sambuc 	eelf_i386_sol2.c \
227*c9ea9e7aSLionel Sambuc 	eelf_i386_vxworks.c \
228*c9ea9e7aSLionel Sambuc@@ -2195,6 +2197,10 @@
229*c9ea9e7aSLionel Sambuc   $(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
230*c9ea9e7aSLionel Sambuc   $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
231*c9ea9e7aSLionel Sambuc 	${GENSCRIPTS} armelf_linux_eabi "$(tdir_armelf_linux_abi)"
232*c9ea9e7aSLionel Sambuc+earmelf_minix.c: $(srcdir)/emulparams/armelf_minix.sh \
233*c9ea9e7aSLionel Sambuc+  $(srcdir)/emulparams/armelf.sh \
234*c9ea9e7aSLionel Sambuc+  $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
235*c9ea9e7aSLionel Sambuc+	${GENSCRIPTS} armelf_minix "$(tdir_armelf_minix)"
236*c9ea9e7aSLionel Sambuc earmelf_nacl.c: $(srcdir)/emulparams/armelf_nacl.sh \
237*c9ea9e7aSLionel Sambuc   $(srcdir)/emulparams/armelf_linux_eabi.sh \
238*c9ea9e7aSLionel Sambuc   $(srcdir)/emulparams/armelf_linux.sh \
239*c9ea9e7aSLionel Sambuc@@ -2715,6 +2721,10 @@
240*c9ea9e7aSLionel Sambuc eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
241*c9ea9e7aSLionel Sambuc   $(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
242*c9ea9e7aSLionel Sambuc 	${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)"
243*c9ea9e7aSLionel Sambuc+eelf_i386_minix.c: $(srcdir)/emulparams/elf_i386_minix.sh \
244*c9ea9e7aSLionel Sambuc+  $(srcdir)/emulparams/elf_i386.sh \
245*c9ea9e7aSLionel Sambuc+  $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
246*c9ea9e7aSLionel Sambuc+	${GENSCRIPTS} elf_i386_minix "$(tdir_elf_i386_minix)"
247*c9ea9e7aSLionel Sambuc eelf_i386_nacl.c: $(srcdir)/emulparams/elf_i386_nacl.sh \
248*c9ea9e7aSLionel Sambuc   $(srcdir)/emulparams/elf_i386.sh \
249*c9ea9e7aSLionel Sambuc   $(srcdir)/emulparams/elf_nacl.sh \
250