From c3c89269f8afef30bf467225f538d56daf57e245 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 19 Jul 1999 14:55:16 +0000 Subject: Add new field to bfd_target structure. Initialise this field for all known bfd targets. Add new search function to targets.c --- bfd/bfd-in2.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bfd/bfd-in2.h') diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index cbf883d..fa3c42e 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -3002,8 +3002,12 @@ CAT(NAME,_canonicalize_dynamic_reloc) /* Read in the dynamic relocs. */ long (*_bfd_canonicalize_dynamic_reloc) PARAMS ((bfd *, arelent **, struct symbol_cache_entry **)); - + + /* Opposite endian version of this target. */ + const struct bfd_target * alternative_target; + PTR backend_data; + } bfd_target; boolean bfd_set_default_target PARAMS ((const char *name)); @@ -3014,6 +3018,9 @@ bfd_find_target PARAMS ((CONST char *target_name, bfd *abfd)); const char ** bfd_target_list PARAMS ((void)); +const bfd_target * +bfd_search_for_target PARAMS ((int (* search_func)(const bfd_target *, void *), void *)); + boolean bfd_check_format PARAMS ((bfd *abfd, bfd_format format)); -- cgit v1.1