Upgrading to binutils-2.22
* Added --with-ld=default * Added --with-lto * Options are prepared for future activation of gold. Change-Id: Id9618904055e18d1b37f5e9585f775c367ff356e
This commit is contained in:
parent
b3731794e2
commit
81667d55f3
10
external/gpl3/binutils/fetch.sh
vendored
10
external/gpl3/binutils/fetch.sh
vendored
|
|
@ -5,8 +5,8 @@ echo $0
|
||||||
cd `dirname $0`
|
cd `dirname $0`
|
||||||
|
|
||||||
# Configure fetch method
|
# Configure fetch method
|
||||||
URL="http://www.minix3.org/distfiles-minix/binutils-2.21.1.tar.bz2"
|
URL="http://www.minix3.org/distfiles-minix/binutils-2.22.tar.bz2"
|
||||||
BACKUP_URL="http://ftp.gnu.org/gnu/binutils/binutils-2.21.1.tar.bz2"
|
BACKUP_URL="http://ftp.gnu.org/gnu/binutils/binutils-2.22.tar.bz2"
|
||||||
FETCH=wget
|
FETCH=wget
|
||||||
which curl >/dev/null
|
which curl >/dev/null
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
|
@ -16,15 +16,15 @@ fi
|
||||||
# Fetch sources if not available
|
# Fetch sources if not available
|
||||||
if [ ! -d dist ];
|
if [ ! -d dist ];
|
||||||
then
|
then
|
||||||
if [ ! -f binutils-2.21.1.tar.bz2 ]; then
|
if [ ! -f binutils-2.22.tar.bz2 ]; then
|
||||||
$FETCH $URL
|
$FETCH $URL
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
$FETCH $BACKUP_URL
|
$FETCH $BACKUP_URL
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tar -oxjf binutils-2.21.1.tar.bz2 && \
|
tar -oxjf binutils-2.22.tar.bz2 && \
|
||||||
mv binutils-2.21.1 dist && \
|
mv binutils-2.22 dist && \
|
||||||
cd dist && \
|
cd dist && \
|
||||||
cat ../patches/* | patch -p1
|
cat ../patches/* | patch -p1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
4893
external/gpl3/binutils/patches/0000-binutils_nbsd.patch
vendored
4893
external/gpl3/binutils/patches/0000-binutils_nbsd.patch
vendored
File diff suppressed because it is too large
Load Diff
178
external/gpl3/binutils/patches/0001-minix.patch
vendored
178
external/gpl3/binutils/patches/0001-minix.patch
vendored
|
|
@ -1,6 +1,6 @@
|
||||||
diff -r -x CVS -N -U 3 dist.orig/bfd/config.bfd dist/bfd/config.bfd
|
diff -rNU3 dist.nbsd/bfd/config.bfd dist/bfd/config.bfd
|
||||||
--- dist.orig/bfd/config.bfd 2012-10-31 17:08:07.757323090 +0100
|
--- dist.nbsd/bfd/config.bfd 2013-04-08 23:50:35.000000000 +0200
|
||||||
+++ dist/bfd/config.bfd 2012-10-31 17:47:37.039900295 +0100
|
+++ dist/bfd/config.bfd 2013-04-09 00:31:05.000000000 +0200
|
||||||
@@ -281,7 +281,7 @@
|
@@ -281,7 +281,7 @@
|
||||||
;;
|
;;
|
||||||
arm-*-elf | arm-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
|
arm-*-elf | arm-*-freebsd* | arm*-*-linux-* | arm*-*-conix* | \
|
||||||
|
|
@ -10,7 +10,7 @@ diff -r -x CVS -N -U 3 dist.orig/bfd/config.bfd dist/bfd/config.bfd
|
||||||
targ_defvec=bfd_elf32_littlearm_vec
|
targ_defvec=bfd_elf32_littlearm_vec
|
||||||
targ_selvecs=bfd_elf32_bigarm_vec
|
targ_selvecs=bfd_elf32_bigarm_vec
|
||||||
;;
|
;;
|
||||||
@@ -697,6 +697,9 @@
|
@@ -663,6 +663,9 @@
|
||||||
i[3-7]86-none-*)
|
i[3-7]86-none-*)
|
||||||
targ_defvec=i386coff_vec
|
targ_defvec=i386coff_vec
|
||||||
;;
|
;;
|
||||||
|
|
@ -20,32 +20,32 @@ diff -r -x CVS -N -U 3 dist.orig/bfd/config.bfd dist/bfd/config.bfd
|
||||||
i[3-7]86-*-aout* | i[3-7]86*-*-vsta*)
|
i[3-7]86-*-aout* | i[3-7]86*-*-vsta*)
|
||||||
targ_defvec=i386aout_vec
|
targ_defvec=i386aout_vec
|
||||||
;;
|
;;
|
||||||
diff -r -x CVS -N -U 3 dist.orig/bfd/configure dist/bfd/configure
|
diff -rNU3 dist.nbsd/bfd/configure dist/bfd/configure
|
||||||
--- dist.orig/bfd/configure 2012-10-31 17:08:07.763989894 +0100
|
--- dist.nbsd/bfd/configure 2013-04-08 23:52:18.000000000 +0200
|
||||||
+++ dist/bfd/configure 2012-10-31 18:01:20.947045411 +0100
|
+++ dist/bfd/configure 2013-04-09 00:31:05.000000000 +0200
|
||||||
@@ -15219,6 +15219,7 @@
|
@@ -15210,6 +15210,7 @@
|
||||||
bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
|
bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i386_sol2_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
bfd_elf32_i386_sol2_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
||||||
+ bfd_elf32_i386_minix_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
+ bfd_elf32_i386_minix_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
||||||
|
bfd_elf32_i386_dragonfly_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
|
||||||
|
bfd_elf32_i386_nacl_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
diff -rNU3 dist.nbsd/bfd/configure.in dist/bfd/configure.in
|
||||||
bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
--- dist.nbsd/bfd/configure.in 2013-04-08 23:50:41.000000000 +0200
|
||||||
diff -r -x CVS -N -U 3 dist.orig/bfd/configure.in dist/bfd/configure.in
|
+++ dist/bfd/configure.in 2013-04-09 00:31:05.000000000 +0200
|
||||||
--- dist.orig/bfd/configure.in 2012-10-31 17:08:07.743989476 +0100
|
@@ -709,6 +709,7 @@
|
||||||
+++ dist/bfd/configure.in 2012-10-31 17:47:37.039900295 +0100
|
|
||||||
@@ -710,6 +710,7 @@
|
|
||||||
bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
|
bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i386_sol2_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
bfd_elf32_i386_sol2_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
||||||
+ bfd_elf32_i386_minix_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
+ bfd_elf32_i386_minix_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
||||||
|
bfd_elf32_i386_nacl_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
|
||||||
bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
|
diff -rNU3 dist.nbsd/bfd/elf32-i386.c dist/bfd/elf32-i386.c
|
||||||
diff -r -x CVS -N -U 3 dist.orig/bfd/elf32-i386.c dist/bfd/elf32-i386.c
|
--- dist.nbsd/bfd/elf32-i386.c 2013-04-09 00:27:33.000000000 +0200
|
||||||
--- dist.orig/bfd/elf32-i386.c 2012-10-31 17:08:07.743989476 +0100
|
+++ dist/bfd/elf32-i386.c 2013-04-09 00:31:05.000000000 +0200
|
||||||
+++ dist/bfd/elf32-i386.c 2012-10-31 17:47:37.039900295 +0100
|
@@ -4962,6 +4962,18 @@
|
||||||
@@ -4761,6 +4761,18 @@
|
|
||||||
|
|
||||||
#include "elf32-target.h"
|
#include "elf32-target.h"
|
||||||
|
|
||||||
|
|
@ -64,21 +64,21 @@ diff -r -x CVS -N -U 3 dist.orig/bfd/elf32-i386.c dist/bfd/elf32-i386.c
|
||||||
/* FreeBSD support. */
|
/* FreeBSD support. */
|
||||||
|
|
||||||
#undef TARGET_LITTLE_SYM
|
#undef TARGET_LITTLE_SYM
|
||||||
diff -r -x CVS -N -U 3 dist.orig/bfd/targets.c dist/bfd/targets.c
|
diff -rNU3 dist.nbsd/bfd/targets.c dist/bfd/targets.c
|
||||||
--- dist.orig/bfd/targets.c 2012-10-31 17:08:07.767323296 +0100
|
--- dist.nbsd/bfd/targets.c 2013-04-08 23:50:47.000000000 +0200
|
||||||
+++ dist/bfd/targets.c 2012-10-31 17:47:37.039900295 +0100
|
+++ dist/bfd/targets.c 2013-04-09 00:31:05.000000000 +0200
|
||||||
@@ -605,6 +605,7 @@
|
@@ -617,6 +617,7 @@
|
||||||
extern const bfd_target bfd_elf32_hppa_vec;
|
extern const bfd_target bfd_elf32_hppa_vec;
|
||||||
extern const bfd_target bfd_elf32_i370_vec;
|
extern const bfd_target bfd_elf32_i370_vec;
|
||||||
extern const bfd_target bfd_elf32_i386_freebsd_vec;
|
extern const bfd_target bfd_elf32_i386_freebsd_vec;
|
||||||
+extern const bfd_target bfd_elf32_i386_minix_vec;
|
+extern const bfd_target bfd_elf32_i386_minix_vec;
|
||||||
|
extern const bfd_target bfd_elf32_i386_nacl_vec;
|
||||||
extern const bfd_target bfd_elf32_i386_sol2_vec;
|
extern const bfd_target bfd_elf32_i386_sol2_vec;
|
||||||
extern const bfd_target bfd_elf32_i386_vxworks_vec;
|
extern const bfd_target bfd_elf32_i386_vxworks_vec;
|
||||||
extern const bfd_target bfd_elf32_i386_vec;
|
diff -rNU3 dist.nbsd/config.guess dist/config.guess
|
||||||
diff -r -x CVS -N -U 3 dist.orig/config.guess dist/config.guess
|
--- dist.nbsd/config.guess 2013-04-08 23:50:48.000000000 +0200
|
||||||
--- dist.orig/config.guess 2012-10-31 17:08:07.770656699 +0100
|
+++ dist/config.guess 2013-04-09 00:31:05.000000000 +0200
|
||||||
+++ dist/config.guess 2012-10-31 17:47:37.039900295 +0100
|
@@ -858,8 +858,8 @@
|
||||||
@@ -855,8 +855,8 @@
|
|
||||||
# other systems with GNU libc and userland
|
# other systems with GNU libc and userland
|
||||||
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
|
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
|
||||||
exit ;;
|
exit ;;
|
||||||
|
|
@ -89,9 +89,9 @@ diff -r -x CVS -N -U 3 dist.orig/config.guess dist/config.guess
|
||||||
exit ;;
|
exit ;;
|
||||||
alpha:Linux:*:*)
|
alpha:Linux:*:*)
|
||||||
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
||||||
diff -r -x CVS -N -U 3 dist.orig/gas/config/tc-i386.h dist/gas/config/tc-i386.h
|
diff -rNU3 dist.nbsd/gas/config/tc-i386.h dist/gas/config/tc-i386.h
|
||||||
--- dist.orig/gas/config/tc-i386.h 2012-10-31 17:08:07.493984261 +0100
|
--- dist.nbsd/gas/config/tc-i386.h 2013-04-08 23:50:49.000000000 +0200
|
||||||
+++ dist/gas/config/tc-i386.h 2012-10-31 17:47:37.086567936 +0100
|
+++ dist/gas/config/tc-i386.h 2013-04-09 00:31:05.000000000 +0200
|
||||||
@@ -68,6 +68,10 @@
|
@@ -68,6 +68,10 @@
|
||||||
#define ELF_TARGET_FORMAT64 "elf64-x86-64-sol2"
|
#define ELF_TARGET_FORMAT64 "elf64-x86-64-sol2"
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -103,9 +103,9 @@ diff -r -x CVS -N -U 3 dist.orig/gas/config/tc-i386.h dist/gas/config/tc-i386.h
|
||||||
#ifndef ELF_TARGET_FORMAT
|
#ifndef ELF_TARGET_FORMAT
|
||||||
#define ELF_TARGET_FORMAT "elf32-i386"
|
#define ELF_TARGET_FORMAT "elf32-i386"
|
||||||
#endif
|
#endif
|
||||||
diff -r -x CVS -N -U 3 dist.orig/gas/config/te-minix.h dist/gas/config/te-minix.h
|
diff -rNU3 dist.nbsd/gas/config/te-minix.h dist/gas/config/te-minix.h
|
||||||
--- dist.orig/gas/config/te-minix.h 1970-01-01 01:00:00.000000000 +0100
|
--- dist.nbsd/gas/config/te-minix.h 1970-01-01 01:00:00.000000000 +0100
|
||||||
+++ dist/gas/config/te-minix.h 2012-10-31 17:47:37.086567936 +0100
|
+++ dist/gas/config/te-minix.h 2013-04-09 00:31:05.000000000 +0200
|
||||||
@@ -0,0 +1,9 @@
|
@@ -0,0 +1,9 @@
|
||||||
+#define TE_MINIX 1
|
+#define TE_MINIX 1
|
||||||
+
|
+
|
||||||
|
|
@ -116,9 +116,9 @@ diff -r -x CVS -N -U 3 dist.orig/gas/config/te-minix.h dist/gas/config/te-minix.
|
||||||
+#define LOCAL_LABELS_FB 1
|
+#define LOCAL_LABELS_FB 1
|
||||||
+
|
+
|
||||||
+#include "obj-format.h"
|
+#include "obj-format.h"
|
||||||
diff -r -x CVS -N -U 3 dist.orig/gas/configure dist/gas/configure
|
diff -rNU3 dist.nbsd/gas/configure dist/gas/configure
|
||||||
--- dist.orig/gas/configure 2012-10-31 17:08:07.507317870 +0100
|
--- dist.nbsd/gas/configure 2013-04-08 23:50:57.000000000 +0200
|
||||||
+++ dist/gas/configure 2012-10-31 17:47:37.089901339 +0100
|
+++ dist/gas/configure 2013-04-09 00:31:05.000000000 +0200
|
||||||
@@ -6127,6 +6127,10 @@
|
@@ -6127,6 +6127,10 @@
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
@ -130,10 +130,10 @@ diff -r -x CVS -N -U 3 dist.orig/gas/configure dist/gas/configure
|
||||||
gnu*)
|
gnu*)
|
||||||
lt_cv_deplibs_check_method=pass_all
|
lt_cv_deplibs_check_method=pass_all
|
||||||
;;
|
;;
|
||||||
diff -r -x CVS -N -U 3 dist.orig/gas/configure.tgt dist/gas/configure.tgt
|
diff -rNU3 dist.nbsd/gas/configure.tgt dist/gas/configure.tgt
|
||||||
--- dist.orig/gas/configure.tgt 2012-10-31 17:08:07.507317870 +0100
|
--- dist.nbsd/gas/configure.tgt 2013-04-08 23:50:58.000000000 +0200
|
||||||
+++ dist/gas/configure.tgt 2012-10-31 17:47:37.683247033 +0100
|
+++ dist/gas/configure.tgt 2013-04-09 00:31:05.000000000 +0200
|
||||||
@@ -428,6 +428,7 @@
|
@@ -426,6 +426,7 @@
|
||||||
*-*-elf | *-*-sysv4*) fmt=elf ;;
|
*-*-elf | *-*-sysv4*) fmt=elf ;;
|
||||||
*-*-solaris*) fmt=elf em=solaris ;;
|
*-*-solaris*) fmt=elf em=solaris ;;
|
||||||
*-*-aros*) fmt=elf em=linux ;;
|
*-*-aros*) fmt=elf em=linux ;;
|
||||||
|
|
@ -141,58 +141,18 @@ diff -r -x CVS -N -U 3 dist.orig/gas/configure.tgt dist/gas/configure.tgt
|
||||||
*-*-vxworks* | *-*-windiss) fmt=elf em=vxworks ;;
|
*-*-vxworks* | *-*-windiss) fmt=elf em=vxworks ;;
|
||||||
*-*-netware) fmt=elf em=netware ;;
|
*-*-netware) fmt=elf em=netware ;;
|
||||||
esac
|
esac
|
||||||
diff -r -x CVS -N -U 3 dist.orig/ld/configure.tgt dist/ld/configure.tgt
|
diff -rNU3 dist.nbsd/ld/Makefile.in dist/ld/Makefile.in
|
||||||
--- dist.orig/ld/configure.tgt 2012-10-31 17:08:07.663987808 +0100
|
--- dist.nbsd/ld/Makefile.in 2013-04-08 23:50:59.000000000 +0200
|
||||||
+++ dist/ld/configure.tgt 2012-10-31 17:47:37.869917589 +0100
|
+++ dist/ld/Makefile.in 2013-04-09 00:31:05.000000000 +0200
|
||||||
@@ -73,6 +73,8 @@
|
@@ -449,6 +449,7 @@
|
||||||
armeb-*-elf) targ_emul=armelfb ;;
|
|
||||||
arm-*-elf | arm*-*-eabi*)
|
|
||||||
targ_emul=armelf ;;
|
|
||||||
+arm*-*-minix*) targ_emul=armelf_minix
|
|
||||||
+ targ_extra_emuls="armelf" ;;
|
|
||||||
arm*-*-symbianelf*) targ_emul=armsymbian;;
|
|
||||||
arm-*-kaos*) targ_emul=armelf ;;
|
|
||||||
arm9e-*-elf) targ_emul=armelf ;;
|
|
||||||
@@ -198,6 +200,8 @@
|
|
||||||
i[3-7]86-*-bsd386) targ_emul=i386bsd ;;
|
|
||||||
i[3-7]86-*-bsdi*) targ_emul=i386bsd ;;
|
|
||||||
i[3-7]86-*-aout) targ_emul=i386aout ;;
|
|
||||||
+i[3-7]86-*-minix) targ_emul=elf_i386_minix
|
|
||||||
+ targ_extra_emuls="elf_i386" ;;
|
|
||||||
i[3-7]86-*-linux*aout*) targ_emul=i386linux
|
|
||||||
targ_extra_emuls=elf_i386
|
|
||||||
tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'` ;;
|
|
||||||
diff -r -x CVS -N -U 3 dist.orig/ld/emulparams/armelf_minix.sh dist/ld/emulparams/armelf_minix.sh
|
|
||||||
--- dist.orig/ld/emulparams/armelf_minix.sh 1970-01-01 01:00:00.000000000 +0100
|
|
||||||
+++ dist/ld/emulparams/armelf_minix.sh 2012-10-31 17:47:37.869917589 +0100
|
|
||||||
@@ -0,0 +1,3 @@
|
|
||||||
+. ${srcdir}/emulparams/armelf.sh
|
|
||||||
+. ${srcdir}/emulparams/elf_minix.sh
|
|
||||||
+OUTPUT_FORMAT="elf32-littlearm"
|
|
||||||
diff -r -x CVS -N -U 3 dist.orig/ld/emulparams/elf_i386_minix.sh dist/ld/emulparams/elf_i386_minix.sh
|
|
||||||
--- dist.orig/ld/emulparams/elf_i386_minix.sh 1970-01-01 01:00:00.000000000 +0100
|
|
||||||
+++ dist/ld/emulparams/elf_i386_minix.sh 2012-10-31 17:47:37.869917589 +0100
|
|
||||||
@@ -0,0 +1,3 @@
|
|
||||||
+. ${srcdir}/emulparams/elf_i386.sh
|
|
||||||
+. ${srcdir}/emulparams/elf_minix.sh
|
|
||||||
+OUTPUT_FORMAT="elf32-i386-minix"
|
|
||||||
diff -r -x CVS -N -U 3 dist.orig/ld/emulparams/elf_minix.sh dist/ld/emulparams/elf_minix.sh
|
|
||||||
--- dist.orig/ld/emulparams/elf_minix.sh 1970-01-01 01:00:00.000000000 +0100
|
|
||||||
+++ dist/ld/emulparams/elf_minix.sh 2012-10-31 17:47:37.869917589 +0100
|
|
||||||
@@ -0,0 +1 @@
|
|
||||||
+ELF_INTERPRETER_NAME=\"/libexec/ld-elf.so.1\"
|
|
||||||
diff -r -x CVS -N -U 3 dist.orig/ld/Makefile.in dist/ld/Makefile.in
|
|
||||||
--- dist.orig/ld/Makefile.in 2012-10-31 17:08:07.663987808 +0100
|
|
||||||
+++ dist/ld/Makefile.in 2012-10-31 17:47:37.869917589 +0100
|
|
||||||
@@ -448,6 +448,7 @@
|
|
||||||
earmelf_fbsd.c \
|
earmelf_fbsd.c \
|
||||||
earmelf_linux.c \
|
earmelf_linux.c \
|
||||||
earmelf_linux_eabi.c \
|
earmelf_linux_eabi.c \
|
||||||
+ earmelf_minix.c \
|
+ earmelf_minix.c \
|
||||||
earmelf_nbsd.c \
|
earmelf_nbsd.c \
|
||||||
earmelf_nbsd_eabi.c \
|
|
||||||
earmelf_vxworks.c \
|
earmelf_vxworks.c \
|
||||||
@@ -549,6 +550,7 @@
|
earmelfb.c \
|
||||||
|
@@ -566,6 +567,7 @@
|
||||||
eelf_i386_chaos.c \
|
eelf_i386_chaos.c \
|
||||||
eelf_i386_fbsd.c \
|
eelf_i386_fbsd.c \
|
||||||
eelf_i386_ldso.c \
|
eelf_i386_ldso.c \
|
||||||
|
|
@ -200,7 +160,7 @@ diff -r -x CVS -N -U 3 dist.orig/ld/Makefile.in dist/ld/Makefile.in
|
||||||
eelf_i386_sol2.c \
|
eelf_i386_sol2.c \
|
||||||
eelf_i386_vxworks.c \
|
eelf_i386_vxworks.c \
|
||||||
eelf_s390.c \
|
eelf_s390.c \
|
||||||
@@ -2120,6 +2122,10 @@
|
@@ -2156,6 +2158,10 @@
|
||||||
$(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
|
$(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
|
||||||
$(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
$(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||||
${GENSCRIPTS} armelf_linux_eabi "$(tdir_armelf_linux_abi)"
|
${GENSCRIPTS} armelf_linux_eabi "$(tdir_armelf_linux_abi)"
|
||||||
|
|
@ -211,7 +171,7 @@ diff -r -x CVS -N -U 3 dist.orig/ld/Makefile.in dist/ld/Makefile.in
|
||||||
earmelf_nbsd.c: $(srcdir)/emulparams/armelf_nbsd.sh \
|
earmelf_nbsd.c: $(srcdir)/emulparams/armelf_nbsd.sh \
|
||||||
$(srcdir)/emulparams/armelf.sh \
|
$(srcdir)/emulparams/armelf.sh \
|
||||||
$(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
|
$(ELF_DEPS) $(srcdir)/emultempl/armelf.em \
|
||||||
@@ -2538,6 +2544,10 @@
|
@@ -2640,6 +2646,10 @@
|
||||||
eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
|
eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \
|
||||||
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
$(ELF_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
|
||||||
${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)"
|
${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)"
|
||||||
|
|
@ -222,3 +182,43 @@ diff -r -x CVS -N -U 3 dist.orig/ld/Makefile.in dist/ld/Makefile.in
|
||||||
eelf_i386_sol2.c: $(srcdir)/emulparams/elf_i386_sol2.sh \
|
eelf_i386_sol2.c: $(srcdir)/emulparams/elf_i386_sol2.sh \
|
||||||
$(srcdir)/emulparams/solaris2.sh \
|
$(srcdir)/emulparams/solaris2.sh \
|
||||||
$(srcdir)/emultempl/solaris2.em \
|
$(srcdir)/emultempl/solaris2.em \
|
||||||
|
diff -rNU3 dist.nbsd/ld/configure.tgt dist/ld/configure.tgt
|
||||||
|
--- dist.nbsd/ld/configure.tgt 2013-04-08 23:51:00.000000000 +0200
|
||||||
|
+++ dist/ld/configure.tgt 2013-04-09 00:31:05.000000000 +0200
|
||||||
|
@@ -68,6 +68,8 @@
|
||||||
|
armeb-*-elf) targ_emul=armelfb ;;
|
||||||
|
arm-*-elf | arm*-*-eabi*)
|
||||||
|
targ_emul=armelf ;;
|
||||||
|
+arm*-*-minix*) targ_emul=armelf_minix
|
||||||
|
+ targ_extra_emuls="armelf" ;;
|
||||||
|
arm*-*-symbianelf*) targ_emul=armsymbian;;
|
||||||
|
arm-*-kaos*) targ_emul=armelf ;;
|
||||||
|
arm9e-*-elf) targ_emul=armelf ;;
|
||||||
|
@@ -180,6 +182,8 @@
|
||||||
|
i[3-7]86-*-bsd386) targ_emul=i386bsd ;;
|
||||||
|
i[3-7]86-*-bsdi*) targ_emul=i386bsd ;;
|
||||||
|
i[3-7]86-*-aout) targ_emul=i386aout ;;
|
||||||
|
+i[3-7]86-*-minix) targ_emul=elf_i386_minix
|
||||||
|
+ targ_extra_emuls="elf_i386" ;;
|
||||||
|
i[3-7]86-*-linux*aout*) targ_emul=i386linux
|
||||||
|
targ_extra_emuls=elf_i386
|
||||||
|
tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'` ;;
|
||||||
|
diff -rNU3 dist.nbsd/ld/emulparams/armelf_minix.sh dist/ld/emulparams/armelf_minix.sh
|
||||||
|
--- dist.nbsd/ld/emulparams/armelf_minix.sh 1970-01-01 01:00:00.000000000 +0100
|
||||||
|
+++ dist/ld/emulparams/armelf_minix.sh 2013-04-09 00:31:05.000000000 +0200
|
||||||
|
@@ -0,0 +1,3 @@
|
||||||
|
+. ${srcdir}/emulparams/armelf.sh
|
||||||
|
+. ${srcdir}/emulparams/elf_minix.sh
|
||||||
|
+OUTPUT_FORMAT="elf32-littlearm"
|
||||||
|
diff -rNU3 dist.nbsd/ld/emulparams/elf_i386_minix.sh dist/ld/emulparams/elf_i386_minix.sh
|
||||||
|
--- dist.nbsd/ld/emulparams/elf_i386_minix.sh 1970-01-01 01:00:00.000000000 +0100
|
||||||
|
+++ dist/ld/emulparams/elf_i386_minix.sh 2013-04-09 00:31:05.000000000 +0200
|
||||||
|
@@ -0,0 +1,3 @@
|
||||||
|
+. ${srcdir}/emulparams/elf_i386.sh
|
||||||
|
+. ${srcdir}/emulparams/elf_minix.sh
|
||||||
|
+OUTPUT_FORMAT="elf32-i386-minix"
|
||||||
|
diff -rNU3 dist.nbsd/ld/emulparams/elf_minix.sh dist/ld/emulparams/elf_minix.sh
|
||||||
|
--- dist.nbsd/ld/emulparams/elf_minix.sh 1970-01-01 01:00:00.000000000 +0100
|
||||||
|
+++ dist/ld/emulparams/elf_minix.sh 2013-04-09 00:31:05.000000000 +0200
|
||||||
|
@@ -0,0 +1 @@
|
||||||
|
+ELF_INTERPRETER_NAME=\"/libexec/ld-elf.so.1\"
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,16 @@ ALL_TARGET+= all-gprof
|
||||||
INSTALL_TARGET+=install-gprof
|
INSTALL_TARGET+=install-gprof
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if defined(__MINIX)
|
||||||
|
CONFIGURE_ARGS+= \
|
||||||
|
--with-ld=default \
|
||||||
|
--with-lto
|
||||||
|
#LSC: FIXME Not yet gold, need to create
|
||||||
|
# external/gpl3/binutils/usr.bin/gold directory & needed Makefiles
|
||||||
|
# --with-gold=yes
|
||||||
|
#ALL_TARGET+= all-gold
|
||||||
|
#INSTALL_TARGET+= install-gold
|
||||||
|
.endif # defined(__MINIX)
|
||||||
.include "${.CURDIR}/../Makefile.gnuhost"
|
.include "${.CURDIR}/../Makefile.gnuhost"
|
||||||
|
|
||||||
CCADDFLAGS= -I${DESTDIR}/usr/include -L${DESTDIR}/lib -L${DESTDIR}/usr/lib -B${DESTDIR}/usr/lib/
|
CCADDFLAGS= -I${DESTDIR}/usr/include -L${DESTDIR}/lib -L${DESTDIR}/usr/lib -B${DESTDIR}/usr/lib/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user