aboutsummaryrefslogtreecommitdiff
path: root/include/bfd.h
diff options
context:
space:
mode:
authorSteve Chamberlain <steve@cygnus>1991-10-11 19:44:01 +0000
committerSteve Chamberlain <steve@cygnus>1991-10-11 19:44:01 +0000
commit0c210c9c52e56eda3e50aafbf5517abb538d7132 (patch)
tree33185d00fde16e9d93b63cdcbc1efdedf298dd39 /include/bfd.h
parent0d740984208c34b7a2a2a203f620662346794679 (diff)
downloadgdb-0c210c9c52e56eda3e50aafbf5517abb538d7132.zip
gdb-0c210c9c52e56eda3e50aafbf5517abb538d7132.tar.gz
gdb-0c210c9c52e56eda3e50aafbf5517abb538d7132.tar.bz2
* bfd.h:upgrade from bfd.c
* internalcoff.h: add n_name, n_zeroes and n_offset macros * amdcoff.h: Define OMAGIC and AOUTHDRSZ.
Diffstat (limited to 'include/bfd.h')
-rw-r--r--include/bfd.h75
1 files changed, 71 insertions, 4 deletions
diff --git a/include/bfd.h b/include/bfd.h
index 1b93389..3829d77 100644
--- a/include/bfd.h
+++ b/include/bfd.h
@@ -177,8 +177,6 @@ typedef struct lineno_cache_entry {
/* object and core file sections */
-/* Align an address upward to a power of two. Argument is the power
- of two, e.g. 8-byte alignment uses argument of 3 (8 == 2^3). */
#define align_power(addr, align) \
( ((addr) + ((1<<(align))-1)) & (-1 << (align)))
@@ -271,7 +269,14 @@ CAT(NAME,_bfd_debug_info_start),\
CAT(NAME,_bfd_debug_info_end),\
CAT(NAME,_bfd_debug_info_accumulate)
-#define COFF_SWAP_TABLE coff_swap_aux_in, coff_swap_sym_in, coff_swap_lineno_in,
+#define COFF_SWAP_TABLE \
+ coff_swap_aux_in, coff_swap_sym_in, coff_swap_lineno_in, \
+ coff_swap_aux_out, coff_swap_sym_out, \
+ coff_swap_lineno_out, coff_swap_reloc_out, \
+ coff_swap_filehdr_out, coff_swap_aouthdr_out, \
+ coff_swap_scnhdr_out
+
+
/* User program access to BFD facilities */
@@ -1827,6 +1832,27 @@ before); else determine modify time, cache it, and return it.
#define bfd_set_arch_mach(abfd, arch, mach)\
BFD_SEND ( abfd, _bfd_set_arch_mach, (abfd, arch, mach))
+#define bfd_coff_swap_reloc_out(abfd, i, o) \
+ BFD_SEND (abfd, _bfd_coff_swap_reloc_out, (abfd, i, o))
+
+#define bfd_coff_swap_lineno_out(abfd, i, o) \
+ BFD_SEND (abfd, _bfd_coff_swap_lineno_out, (abfd, i, o))
+
+#define bfd_coff_swap_aux_out(abfd, i, t,c,o) \
+ BFD_SEND (abfd, _bfd_coff_swap_aux_out, (abfd, i,t,c, o))
+
+#define bfd_coff_swap_sym_out(abfd, i,o) \
+ BFD_SEND (abfd, _bfd_coff_swap_sym_out, (abfd, i, o))
+
+#define bfd_coff_swap_scnhdr_out(abfd, i,o) \
+ BFD_SEND (abfd, _bfd_coff_swap_scnhdr_out, (abfd, i, o))
+
+#define bfd_coff_swap_filehdr_out(abfd, i,o) \
+ BFD_SEND (abfd, _bfd_coff_swap_filehdr_out, (abfd, i, o))
+
+#define bfd_coff_swap_aouthdr_out(abfd, i,o) \
+ BFD_SEND (abfd, _bfd_coff_swap_aouthdr_out, (abfd, i, o))
+
/*
*/
@@ -1903,7 +1929,7 @@ or else @code{false}.
/*:targets.c*/
/* bfd_target
-@node bfd_target
+@node bfd_target, , Targets, Targets
@subsection bfd_target
This structure contains everything that BFD knows about a target.
It includes things like its byte order, name, what routines to call
@@ -2151,6 +2177,47 @@ Special entry points for gdb to swap in coff symbol table parts
PTR ext,
PTR in));
+/*
+Special entry points for gas to swap coff parts
+*/
+
+ SDEF(unsigned int, _bfd_coff_swap_aux_out,(
+ bfd *abfd,
+ PTR in,
+ int type,
+ int class,
+ PTR ext));
+
+ SDEF(unsigned int, _bfd_coff_swap_sym_out,(
+ bfd *abfd,
+ PTR in,
+ PTR ext));
+
+ SDEF(unsigned int, _bfd_coff_swap_lineno_out,(
+ bfd *abfd,
+ PTR in,
+ PTR ext));
+
+ SDEF(unsigned int, _bfd_coff_swap_reloc_out,(
+ bfd *abfd,
+ PTR src,
+ PTR dst));
+
+ SDEF(unsigned int, _bfd_coff_swap_filehdr_out,(
+ bfd *abfd,
+ PTR in,
+ PTR out));
+
+ SDEF(unsigned int, _bfd_coff_swap_aouthdr_out,(
+ bfd *abfd,
+ PTR in,
+ PTR out));
+
+ SDEF(unsigned int, _bfd_coff_swap_scnhdr_out,(
+ bfd *abfd,
+ PTR in,
+ PTR out));
+
} bfd_target;
/*