aboutsummaryrefslogtreecommitdiff
path: root/bfd/libxcoff.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/libxcoff.h')
-rw-r--r--bfd/libxcoff.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/bfd/libxcoff.h b/bfd/libxcoff.h
index b0ac050..257e9e4 100644
--- a/bfd/libxcoff.h
+++ b/bfd/libxcoff.h
@@ -112,6 +112,9 @@ struct xcoff_backend_data_rec
*/
unsigned long _xcoff_glink_size;
+ /* rtinit */
+ unsigned int _xcoff_rtinit_size;
+ boolean (*_xcoff_generate_rtinit)(bfd *, const char *, const char *);
};
/* Look up an entry in an XCOFF link hash table. */
@@ -201,9 +204,15 @@ struct xcoff_backend_data_rec
#define bfd_xcoff_glink_code(a, b) ((xcoff_backend(a)->_xcoff_glink_code[(b)]))
#define bfd_xcoff_glink_code_size(a) ((xcoff_backend(a)->_xcoff_glink_size))
+/* Check for the magic number U803XTOCMAGIC for 64 bit targets. */
#define bfd_xcoff_is_xcoff64(a) (0x01EF == (bfd_xcoff_magic_number(a)))
+
+/* Check for the magic number U802TOMAGIC for 32 bit targets. */
#define bfd_xcoff_is_xcoff32(a) (0x01DF == (bfd_xcoff_magic_number(a)))
+#define bfd_xcoff_rtinit_size(a) ((xcoff_backend(a)->_xcoff_rtinit_size))
+#define bfd_xcoff_generate_rtinit(a, b, c) ((xcoff_backend(a)->_xcoff_generate_rtinit ((a), (b), (c))))
+
/* Functions in xcofflink.c. */
extern long _bfd_xcoff_get_dynamic_symtab_upper_bound PARAMS ((bfd *));