This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] Add support for s390x-ibm-tpf
- From: Ulrich Weigand <uweigand at de dot ibm dot com>
- To: binutils at sources dot redhat dot com
- Cc: darcypj at us dot ibm dot com
- Date: Thu, 16 Dec 2004 13:54:25 +0100 (CET)
- Subject: [PATCH] Add support for s390x-ibm-tpf
Hello,
this patch adds binutils support for the s390x-ibm-tpf target
(as cross-target only). GCC already supports this target.
The actual implementation doesn't differ from the s390x-ibm-linux
target, so this patch only adds the required configure fragments.
Patch provided by P.J. Darcy <darcypj@us.ibm.com> of the TPF team.
Is this patch OK for binutils CVS?
Bye,
Ulrich
ChangeLog:
2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
* bfd/config.bfd: Add s390x-ibm-tpf support.
* ld/configure.tgt: Likewise.
* gas/configure.in: Likewise.
* gas/configure: Regenerate.
Index: bfd/config.bfd
===================================================================
RCS file: /cvs/src/src/bfd/config.bfd,v
retrieving revision 1.178
diff -c -p -r1.178 config.bfd
*** bfd/config.bfd 8 Nov 2004 13:17:33 -0000 1.178
--- bfd/config.bfd 16 Dec 2004 11:51:59 -0000
*************** case "${targ}" in
*** 1059,1064 ****
--- 1059,1067 ----
targ_defvec=bfd_elf64_s390_vec
targ_selvecs=bfd_elf32_s390_vec
;;
+ s390x-*-tpf*)
+ targ_defvec=bfd_elf64_s390_vec
+ ;;
#endif
#ifdef BFD64
Index: gas/configure
===================================================================
RCS file: /cvs/src/src/gas/configure,v
retrieving revision 1.183
diff -c -p -r1.183 configure
*** gas/configure 3 Dec 2004 01:22:14 -0000 1.183
--- gas/configure 16 Dec 2004 11:52:00 -0000
*************** echo "$as_me: error: Solaris must be con
*** 4533,4538 ****
--- 4533,4539 ----
s390x-*-linux-gnu*) fmt=elf em=linux ;;
s390-*-linux-gnu*) fmt=elf em=linux ;;
+ s390-*-tpf*) fmt=elf ;;
sh*-*-linux*) fmt=elf em=linux
case ${cpu} in
Index: gas/configure.in
===================================================================
RCS file: /cvs/src/src/gas/configure.in,v
retrieving revision 1.166
diff -c -p -r1.166 configure.in
*** gas/configure.in 3 Dec 2004 01:22:13 -0000 1.166
--- gas/configure.in 16 Dec 2004 11:52:00 -0000
*************** changequote([,])dnl
*** 462,467 ****
--- 462,468 ----
s390x-*-linux-gnu*) fmt=elf em=linux ;;
s390-*-linux-gnu*) fmt=elf em=linux ;;
+ s390-*-tpf*) fmt=elf ;;
sh*-*-linux*) fmt=elf em=linux
case ${cpu} in
Index: ld/configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.160
diff -c -p -r1.160 configure.tgt
*** ld/configure.tgt 19 Nov 2004 19:28:40 -0000 1.160
--- ld/configure.tgt 16 Dec 2004 11:52:01 -0000
*************** s390x-*-linux*) targ_emul=elf64_
*** 565,570 ****
--- 565,572 ----
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-*-linux*) targ_emul=elf_s390
if test "${want64}" = "true"; then
targ_extra_emuls=elf64_s390
--
Dr. Ulrich Weigand
Linux on zSeries Development
Ulrich.Weigand@de.ibm.com