summaryrefslogtreecommitdiffstats
path: root/bfd/bfd-in.h
diff options
context:
space:
mode:
authorNicholas Duffek <nsd@redhat.com>2000-06-16 20:35:08 +0000
committerNicholas Duffek <nsd@redhat.com>2000-06-16 20:35:08 +0000
commit9bd09e220fef247580c9736ab0d680c875c11f93 (patch)
tree91e8e7dbc2b2c7270e442eb367669bfac5f242c2 /bfd/bfd-in.h
parent59d9f04945ee7db09afc0ca31ac4b5ba37f5ea49 (diff)
downloadppe42-binutils-9bd09e220fef247580c9736ab0d680c875c11f93.tar.gz
ppe42-binutils-9bd09e220fef247580c9736ab0d680c875c11f93.zip
* bfd-in.h (bfd_family_coff): Define.
* bfd-in2.h: Regenerate. * coffgen.c (coff_count_linenumbers, coff_symbol_from, coff_find_nearest_line): Check COFFness using bfd_family_coff() instead of bfd_target_coff_flavour. * cofflink.c (_bfd_coff_final_link): Likewise. * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to exclude XCOFF files. * reloc.c (bfd_perform_relocation, bfd_install_relocation): Likewise. * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour. * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour. * xcofflink.c (XCOFF_XVECP): Delete. (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol, bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc, bfd_xcoff_record_link_assignment, bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with check for bfd_target_xcoff_flavour.
Diffstat (limited to 'bfd/bfd-in.h')
-rw-r--r--bfd/bfd-in.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index dc172bf7da..26a90800d7 100644
--- a/bfd/bfd-in.h
+++ b/bfd/bfd-in.h
@@ -489,6 +489,9 @@ extern int bfd_stat PARAMS ((bfd *abfd, struct stat *));
#define bfd_get_format(abfd) ((abfd)->format)
#define bfd_get_target(abfd) ((abfd)->xvec->name)
#define bfd_get_flavour(abfd) ((abfd)->xvec->flavour)
+#define bfd_family_coff(abfd) \
+ (bfd_get_flavour (abfd) == bfd_target_coff_flavour || \
+ bfd_get_flavour (abfd) == bfd_target_xcoff_flavour)
#define bfd_big_endian(abfd) ((abfd)->xvec->byteorder == BFD_ENDIAN_BIG)
#define bfd_little_endian(abfd) ((abfd)->xvec->byteorder == BFD_ENDIAN_LITTLE)
#define bfd_header_big_endian(abfd) \
OpenPOWER on IntegriCloud