From: hjl@varesearch.com (H.J. Lu)
To: mark@codesourcery.com
Cc: ian@zembu.com (Ian Lance Taylor), binutils@sourceware.cygnus.com
Subject: A 32bit BFD patch
Date: Sat, 10 Jul 1999 10:47:00 -0000 [thread overview]
Message-ID: <19990710174726.458E33FC1@varesearch.com> (raw)
Since the latest ELF/MIPS change, elf32/mips is now 64bit. As the
result,
# ...../configure --enable-targets=all
no longer works on 32bit hosts. Here is a patch to move elf32/mips
to 64bit.
Thanks.
--
H.J. Lu (hjl@gnu.org)
--
Sat Jul 10 09:38:38 1998 H.J. Lu (hjl@gnu.org)
* Makefile.am (BFD32_BACKENDS): Remove elf32-mips.lo.
(BFD32_BACKENDS_CFILES): Remove elf32-mips.c.
(BFD64_BACKENDS): Add elf32-mips.lo.
(BFD64_BACKENDS_CFILES): Add elf32-mips.c.
* Makefile.in: Regnerated.
* targets.c (bfd_target_vector): Move bfd_elf32_bigmips_vec
and bfd_elf32_littlemips_vec to 64bit.
* config.bfd: Move elf32/mips to 64bit.
Index: Makefile.am
===================================================================
RCS file: /work/cvs/gnu/binutils/bfd/Makefile.am,v
retrieving revision 1.1.1.5
retrieving revision 1.4
diff -u -p -r1.1.1.5 -r1.4
--- Makefile.am 1999/06/11 13:41:37 1.1.1.5
+++ Makefile.am 1999/07/10 16:39:21 1.4
@@ -47,6 +47,7 @@ ALL_MACHINES = \
cpu-h8300.lo \
cpu-h8500.lo \
cpu-hppa.lo \
+ cpu-i370.lo \
cpu-i386.lo \
cpu-i860.lo \
cpu-i960.lo \
@@ -81,6 +82,7 @@ ALL_MACHINES_CFILES = \
cpu-h8300.c \
cpu-h8500.c \
cpu-hppa.c \
+ cpu-i370.c \
cpu-i386.c \
cpu-i860.c \
cpu-i960.c \
@@ -157,6 +159,7 @@ BFD32_BACKENDS = \
elf32-fr30.lo \
elf32-gen.lo \
elf32-hppa.lo \
+ elf32-i370.lo \
elf32-i386.lo \
elf32-i860.lo \
elf32-i960.lo \
@@ -166,7 +169,6 @@ BFD32_BACKENDS = \
elf-m10200.lo \
elf-m10300.lo \
elf32-mcore.lo \
- elf32-mips.lo \
elf32-ppc.lo \
elf32-sh.lo \
elf32-sparc.lo \
@@ -279,6 +281,7 @@ BFD32_BACKENDS_CFILES = \
elf32-fr30.c \
elf32-gen.c \
elf32-hppa.c \
+ elf32-i370.c \
elf32-i386.c \
elf32-i860.c \
elf32-i960.c \
@@ -288,7 +291,6 @@ BFD32_BACKENDS_CFILES = \
elf-m10200.c \
elf-m10300.c \
elf32-mcore.c \
- elf32-mips.c \
elf32-ppc.c \
elf32-sh.c \
elf32-sparc.c \
@@ -362,6 +364,7 @@ BFD64_BACKENDS = \
elf64-mips.lo \
elf64-sparc.lo \
elf64.lo \
+ elf32-mips.lo \
nlm32-alpha.lo \
nlm64.lo
@@ -374,6 +377,7 @@ BFD64_BACKENDS_CFILES = \
elf64-mips.c \
elf64-sparc.c \
elf64.c \
+ elf32-mips.c \
nlm32-alpha.c \
nlm64.c
Index: targets.c
===================================================================
RCS file: /work/cvs/gnu/binutils/bfd/targets.c,v
retrieving revision 1.1.1.3
retrieving revision 1.3
diff -u -p -r1.1.1.3 -r1.3
--- targets.c 1999/06/11 13:41:48 1.1.1.3
+++ targets.c 1999/07/10 16:44:30 1.3
@@ -672,13 +672,13 @@ const bfd_target * const bfd_target_vect
&bfd_elf32_bigarc_vec,
&bfd_elf32_bigarm_vec,
&bfd_elf32_bigarm_oabi_vec,
- &bfd_elf32_bigmips_vec,
#ifdef BFD64
+ &bfd_elf32_bigmips_vec,
&bfd_elf64_bigmips_vec,
#endif
&bfd_elf32_d10v_vec,
&bfd_elf32_d30v_vec,
&bfd_elf32_hppa_vec,
&bfd_elf32_i386_vec,
&bfd_elf32_i860_vec,
&bfd_elf32_i960_vec,
@@ -686,8 +688,8 @@ const bfd_target * const bfd_target_vect
&bfd_elf32_littlearc_vec,
&bfd_elf32_littlearm_vec,
&bfd_elf32_littlearm_oabi_vec,
- &bfd_elf32_littlemips_vec,
#ifdef BFD64
+ &bfd_elf32_littlemips_vec,
&bfd_elf64_littlemips_vec,
#endif
&bfd_elf32_m32r_vec,
Index: config.bfd
===================================================================
RCS file: /work/cvs/gnu/binutils/bfd/config.bfd,v
retrieving revision 1.1.1.5
diff -u -p -r1.1.1.5 config.bfd
--- config.bfd 1999/07/09 15:20:45 1.1.1.5
+++ config.bfd 1999/07/10 16:59:31
@@ -77,6 +78,47 @@ case "${targ}" in
alpha*-*-*)
targ_defvec=ecoffalpha_little_vec
;;
+
+ mips-dec-netbsd* | mips*el*-*-netbsd*)
+ targ_defvec=bfd_elf32_littlemips_vec
+ targ_selvecs="bfd_elf32_bigmips_vec ecoff_little_vec ecoff_big_vec"
+ ;;
+ mips*-*-netbsd*)
+ targ_defvec=bfd_elf32_bigmips_vec
+ targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec"
+ ;;
+ mips*-*-irix6*)
+ targ_defvec=bfd_elf32_bigmips_vec
+ targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
+ ;;
+ mips*-*-irix5*)
+ targ_defvec=bfd_elf32_bigmips_vec
+ targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec"
+ ;;
+ mips*-*-sysv4*)
+ targ_defvec=bfd_elf32_bigmips_vec
+ targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec"
+ ;;
+ mips*el-*-elf* | mips*el-*-rtems* | mips*el-*-vxworks*)
+ targ_defvec=bfd_elf32_littlemips_vec
+ targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
+ ;;
+ mips*-*-elf* | mips*-*-rtems* | mips*-*-vxworks*)
+ targ_defvec=bfd_elf32_bigmips_vec
+ targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
+ ;;
+ mips*-*-none)
+ targ_defvec=bfd_elf32_bigmips_vec
+ targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
+ ;;
+ mips*el*-*-linux-gnu* | mips*el*-*-openbsd*)
+ targ_defvec=bfd_elf32_littlemips_vec
+ targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_little_vec ecoff_big_vec"
+ ;;
+ mips*-*-linux-gnu* | mips*-*-openbsd*)
+ targ_defvec=bfd_elf32_bigmips_vec
+ targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_big_vec ecoff_little_vec"
+ ;;
#endif /* BFD64 */
arc-*-elf*)
@@ -460,14 +510,6 @@ case "${targ}" in
targ_defvec=ecoff_big_vec
targ_selvecs=ecoff_little_vec
;;
- mips-dec-netbsd* | mips*el*-*-netbsd*)
- targ_defvec=bfd_elf32_littlemips_vec
- targ_selvecs="bfd_elf32_bigmips_vec ecoff_little_vec ecoff_big_vec"
- ;;
- mips*-*-netbsd*)
- targ_defvec=bfd_elf32_bigmips_vec
- targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec"
- ;;
mips*-dec-bsd*)
targ_defvec=aout_mips_little_vec
targ_underscore=yes
@@ -484,14 +526,6 @@ case "${targ}" in
targ_defvec=ecoff_big_vec
targ_selvecs=ecoff_little_vec
;;
- mips*-*-irix6*)
- targ_defvec=bfd_elf32_bigmips_vec
- targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
- ;;
- mips*-*-irix5*)
- targ_defvec=bfd_elf32_bigmips_vec
- targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec"
- ;;
mips*-sgi-* | mips*-*-bsd*)
targ_defvec=ecoff_big_vec
targ_selvecs=ecoff_little_vec
@@ -504,33 +538,9 @@ case "${targ}" in
targ_defvec=aout_mips_little_vec
targ_cflags=-DSTAT_FOR_EXEC
;;
- mips*-*-sysv4*)
- targ_defvec=bfd_elf32_bigmips_vec
- targ_selvecs="bfd_elf32_littlemips_vec ecoff_big_vec ecoff_little_vec"
- ;;
mips*-*-sysv* | mips*-*-riscos*)
targ_defvec=ecoff_big_vec
targ_selvecs=ecoff_little_vec
- ;;
- mips*el-*-elf* | mips*el-*-rtems* | mips*el-*-vxworks*)
- targ_defvec=bfd_elf32_littlemips_vec
- targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
- ;;
- mips*-*-elf* | mips*-*-rtems* | mips*-*-vxworks*)
- targ_defvec=bfd_elf32_bigmips_vec
- targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
- ;;
- mips*-*-none)
- targ_defvec=bfd_elf32_bigmips_vec
- targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
- ;;
- mips*el*-*-linux-gnu* | mips*el*-*-openbsd*)
- targ_defvec=bfd_elf32_littlemips_vec
- targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_little_vec ecoff_big_vec"
- ;;
- mips*-*-linux-gnu* | mips*-*-openbsd*)
- targ_defvec=bfd_elf32_bigmips_vec
- targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_big_vec ecoff_little_vec"
;;
mn10200-*-*)
next reply other threads:[~1999-07-10 10:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-10 10:47 H.J. Lu [this message]
1999-07-10 17:53 ` Ian Lance Taylor
1999-07-10 23:47 ` Mark Mitchell
1999-07-11 0:26 ` H.J. Lu
1999-07-11 9:30 ` Mark Mitchell
1999-07-11 9:37 ` H.J. Lu
1999-07-11 9:46 ` Mark Mitchell
1999-07-11 19:48 ` Ian Lance Taylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19990710174726.458E33FC1@varesearch.com \
--to=hjl@varesearch.com \
--cc=binutils@sourceware.cygnus.com \
--cc=ian@zembu.com \
--cc=mark@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).