aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1999-07-19 14:55:16 +0000
committerNick Clifton <nickc@redhat.com>1999-07-19 14:55:16 +0000
commitc3c89269f8afef30bf467225f538d56daf57e245 (patch)
tree203ceab6adb9b30d0831d3eaeeecfb2fd875115f /bfd/nlm-target.h
parent * elflink.h (elf_bfd_final_link): Remove unused variables rel_hash (diff)
downloadbinutils-gdb-c3c89269f8afef30bf467225f538d56daf57e245.tar.gz
binutils-gdb-c3c89269f8afef30bf467225f538d56daf57e245.tar.bz2
binutils-gdb-c3c89269f8afef30bf467225f538d56daf57e245.zip
Add new field to bfd_target structure.
Initialise this field for all known bfd targets. Add new search function to targets.c
Diffstat (limited to 'bfd/nlm-target.h')
-rw-r--r--bfd/nlm-target.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/bfd/nlm-target.h b/bfd/nlm-target.h
index 6f1d47d8c45..5c1e255b4c8 100644
--- a/bfd/nlm-target.h
+++ b/bfd/nlm-target.h
@@ -55,6 +55,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
There are two such structures here: one for big-endian machines and
one for little-endian machines. */
+/* Forward declaration for use when initialising alternative_target field. */
+#ifdef TARGET_LITTLE_SYM
+extern const bfd_target TARGET_LITTLE_SYM;
+#endif
#ifdef TARGET_BIG_SYM
const bfd_target TARGET_BIG_SYM =
@@ -137,6 +141,13 @@ const bfd_target TARGET_BIG_SYM =
BFD_JUMP_TABLE_LINK (nlm),
BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic),
+ /* Alternative endian target. */
+#ifdef TARGET_LITTLE_SYM
+ & TARGET_LITTLE_SYM,
+#else
+ NULL,
+#endif
+
/* backend_data: */
(PTR) TARGET_BACKEND_DATA
};
@@ -223,6 +234,13 @@ const bfd_target TARGET_LITTLE_SYM =
BFD_JUMP_TABLE_LINK (nlm),
BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic),
+ /* Alternative endian target. */
+#ifdef TARGET_BIG_SYM
+ & TARGET_BIG_SYM,
+#else
+ NULL,
+#endif
+
/* backend_data: */
(PTR) TARGET_BACKEND_DATA
};