aboutsummaryrefslogtreecommitdiff
path: root/bfd/libxcoff.h
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2001-12-22 17:18:34 +0000
committerTom Rix <trix@redhat.com>2001-12-22 17:18:34 +0000
commit9a4c7f16697de0aea00870e4b6b183b149596ceb (patch)
tree40946176390a99333d4e9c514238c947a632b913 /bfd/libxcoff.h
parentf3989180859c653c4c59720a0bf706479561884c (diff)
downloadgdb-9a4c7f16697de0aea00870e4b6b183b149596ceb.zip
gdb-9a4c7f16697de0aea00870e4b6b183b149596ceb.tar.gz
gdb-9a4c7f16697de0aea00870e4b6b183b149596ceb.tar.bz2
-binitfini emulation, put __rtinit symbol generation into linker.
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 *));