aboutsummaryrefslogtreecommitdiff
path: root/contrib/binutils/ld
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/binutils/ld')
-rw-r--r--contrib/binutils/ld/configure.tgt9
-rwxr-xr-xcontrib/binutils/ld/emulparams/elf64_s390_fbsd.sh2
-rwxr-xr-xcontrib/binutils/ld/emulparams/elf_s390_fbsd.sh2
3 files changed, 13 insertions, 0 deletions
diff --git a/contrib/binutils/ld/configure.tgt b/contrib/binutils/ld/configure.tgt
index 46e05d33a8ab..2ed7d4a19702 100644
--- a/contrib/binutils/ld/configure.tgt
+++ b/contrib/binutils/ld/configure.tgt
@@ -480,12 +480,21 @@ powerpc-*-lynxos*) targ_emul=ppclynx ;;
rs6000-*-aix5*) targ_emul=aix5rs6 ;;
rs6000-*-aix*) targ_emul=aixrs6
;;
+s390x-*-freebsd*) targ_emul=elf64_s390
+ targ_extra_emuls=elf_s390
+ targ_extra_libpath=$targ_extra_emuls
+ tdir_elf_s390=`echo ${targ_alias} | sed -e 's/s390x/s390/'` ;;
s390x-*-linux*) targ_emul=elf64_s390
targ_extra_emuls=elf_s390
targ_extra_libpath=$targ_extra_emuls
tdir_elf_s390=`echo ${targ_alias} | sed -e 's/s390x/s390/'` ;;
s390x-*-tpf*) targ_emul=elf64_s390
tdir_elf_s390=`echo ${targ_alias} | sed -e 's/s390x/s390/'` ;;
+s390-*-freebsd*) targ_emul=elf_s390
+ targ64_extra_emuls=elf64_s390
+ targ64_extra_libpath=elf64_s390
+ tdir_elf64_s390=`echo ${targ_alias} | sed -e 's/s390/s390x/'`
+ ;;
s390-*-linux*) targ_emul=elf_s390
targ64_extra_emuls=elf64_s390
targ64_extra_libpath=elf64_s390
diff --git a/contrib/binutils/ld/emulparams/elf64_s390_fbsd.sh b/contrib/binutils/ld/emulparams/elf64_s390_fbsd.sh
new file mode 100755
index 000000000000..c0191ebc9eba
--- /dev/null
+++ b/contrib/binutils/ld/emulparams/elf64_s390_fbsd.sh
@@ -0,0 +1,2 @@
+. ${srcdir}/emulparams/elf64_s390.sh
+. ${srcdir}/emulparams/elf_fbsd.sh
diff --git a/contrib/binutils/ld/emulparams/elf_s390_fbsd.sh b/contrib/binutils/ld/emulparams/elf_s390_fbsd.sh
new file mode 100755
index 000000000000..89662a0c7515
--- /dev/null
+++ b/contrib/binutils/ld/emulparams/elf_s390_fbsd.sh
@@ -0,0 +1,2 @@
+. ${srcdir}/emulparams/elf_s390.sh
+. ${srcdir}/emulparams/elf_fbsd.sh