aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-target.h
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/elfxx-target.h
parenta9602746fa290e999d3df58bb9281f80340bf5ac (diff)
downloadgdb-c3c89269f8afef30bf467225f538d56daf57e245.zip
gdb-c3c89269f8afef30bf467225f538d56daf57e245.tar.gz
gdb-c3c89269f8afef30bf467225f538d56daf57e245.tar.bz2
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/elfxx-target.h')
-rw-r--r--bfd/elfxx-target.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h
index 5b06d06..d40a870 100644
--- a/bfd/elfxx-target.h
+++ b/bfd/elfxx-target.h
@@ -388,6 +388,11 @@ static CONST struct elf_backend_data elfNN_bed =
elf_backend_want_dynbss
};
+/* 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 =
{
@@ -471,8 +476,15 @@ const bfd_target TARGET_BIG_SYM =
BFD_JUMP_TABLE_LINK (bfd_elfNN),
BFD_JUMP_TABLE_DYNAMIC (bfd_elfNN),
+ /* Alternative endian target. */
+#ifdef TARGET_LITTLE_SYM
+ & TARGET_LITTLE_SYM,
+#else
+ NULL,
+#endif
+
/* backend_data: */
- (PTR) &elfNN_bed,
+ (PTR) &elfNN_bed
};
#endif
@@ -559,7 +571,14 @@ const bfd_target TARGET_LITTLE_SYM =
BFD_JUMP_TABLE_LINK (bfd_elfNN),
BFD_JUMP_TABLE_DYNAMIC (bfd_elfNN),
+ /* Alternative endian target. */
+#ifdef TARGET_BIG_SYM
+ & TARGET_BIG_SYM,
+#else
+ NULL,
+#endif
+
/* backend_data: */
- (PTR) &elfNN_bed,
+ (PTR) &elfNN_bed
};
#endif