From 4c70373f8496ebd1e9958509492a56237b99ea76 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 16 Feb 1996 17:48:04 +0000 Subject: [PATCH] * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx. --- bfd/ChangeLog | 4 ++++ bfd/bout.c | 20 +++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f8a7a0fb490..92862d0caa9 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +Fri Feb 16 12:46:18 1996 Ian Lance Taylor + + * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx. + Thu Feb 15 11:29:13 1996 Ian Lance Taylor * configure.in: Call AC_PROG_CC before configure.host. diff --git a/bfd/bout.c b/bfd/bout.c index 79218e474e1..f850cc54d90 100644 --- a/bfd/bout.c +++ b/bfd/bout.c @@ -1,5 +1,5 @@ /* BFD back-end for Intel 960 b.out binaries. - Copyright 1990, 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. + Copyright 1990, 91, 92, 93, 94, 95, 1996 Free Software Foundation, Inc. Written by Cygnus Support. This file is part of BFD, the Binary File Descriptor library. @@ -519,7 +519,7 @@ b_out_slurp_reloc_table (abfd, asect, symbols) - if (abfd->xvec->header_byteorder_big_p) { + if (bfd_header_big_endian (abfd)) { /* big-endian bit field allocation order */ pcrel_mask = 0x80; extern_mask = 0x10; @@ -545,7 +545,7 @@ b_out_slurp_reloc_table (abfd, asect, symbols) unsigned int symnum; cache_ptr->address = bfd_h_get_32 (abfd, raw + 0); cache_ptr->howto = 0; - if (abfd->xvec->header_byteorder_big_p) + if (bfd_header_big_endian (abfd)) { symnum = (raw[4] << 16) | (raw[5] << 8) | raw[6]; } @@ -699,7 +699,7 @@ b_out_squirt_out_relocs (abfd, section) if (!native && natsize != 0) return false; - if (abfd->xvec->header_byteorder_big_p) + if (bfd_header_big_endian (abfd)) { /* Big-endian bit field allocation order */ pcrel_mask = 0x80; @@ -795,7 +795,7 @@ b_out_squirt_out_relocs (abfd, section) r_idx = output_section->target_index; } - if (abfd->xvec->header_byteorder_big_p) { + if (bfd_header_big_endian (abfd)) { raw[4] = (unsigned char) (r_idx >> 16); raw[5] = (unsigned char) (r_idx >> 8); raw[6] = (unsigned char) (r_idx ); @@ -929,6 +929,8 @@ b_out_set_arch_mach (abfd, arch, machine) case bfd_mach_i960_xa: case bfd_mach_i960_ca: case bfd_mach_i960_ka_sa: + case bfd_mach_i960_jx: + case bfd_mach_i960_hx: case 0: return true; default: @@ -1390,8 +1392,8 @@ const bfd_target b_out_vec_big_host = { "b.out.big", /* name */ bfd_target_aout_flavour, - false, /* data byte order is little */ - true, /* hdr byte order is big */ + BFD_ENDIAN_LITTLE, /* data byte order is little */ + BFD_ENDIAN_BIG, /* hdr byte order is big */ (HAS_RELOC | EXEC_P | /* object flags */ HAS_LINENO | HAS_DEBUG | HAS_SYMS | HAS_LOCALS | WP_TEXT | BFD_IS_RELAXABLE ), @@ -1431,8 +1433,8 @@ const bfd_target b_out_vec_little_host = { "b.out.little", /* name */ bfd_target_aout_flavour, - false, /* data byte order is little */ - false, /* header byte order is little */ + BFD_ENDIAN_LITTLE, /* data byte order is little */ + BFD_ENDIAN_LITTLE, /* header byte order is little */ (HAS_RELOC | EXEC_P | /* object flags */ HAS_LINENO | HAS_DEBUG | HAS_SYMS | HAS_LOCALS | WP_TEXT | BFD_IS_RELAXABLE ), -- 2.30.2