diff options
author | Ken Raeburn <raeburn@cygnus> | 1992-10-09 01:39:06 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1992-10-09 01:39:06 +0000 |
commit | 214f8f2392b9c23f589ca2346e30faff01d8e09f (patch) | |
tree | 3b1451d1fadee02d2a00c2d4529b10bd660783f6 /bfd/aout-target.h | |
parent | d047d16af719a72d659c032f7b62bf7b1476c3e5 (diff) | |
download | gdb-214f8f2392b9c23f589ca2346e30faff01d8e09f.zip gdb-214f8f2392b9c23f589ca2346e30faff01d8e09f.tar.gz gdb-214f8f2392b9c23f589ca2346e30faff01d8e09f.tar.bz2 |
* aout-target.h (callback): Don't define this function if it won't be used.
* aoutx.h (some_aout_object_p): Restore old aout_data value if this type
doesn't match. Don't lose if file sections have already been created.
(set_arch_mach): Set reloc_entry_size.
(slurp_symbol_table): Use bfd_h_get_{16,8} for reaeding symbol data.
* hosts/i386bsd.h: New file.
* configure.in: Recognize i[34]86-*-bsd host.
* aout-target.h (callback, write_object_contents): Delete unused variables.
* aoutx.h (reloc_type_lookup): New function.
* aout-target.h (MY_reloc_howto_type_lookup): Use it as default.
* aoutf1.h (sunos4_reloc_type_lookup): Deleted.
(MY_reloc_howto_type_lookup): Don't define it.
* aoutx.h (adjust_sizes_and_vmas): Don't bother with padding for OMAGIC files.
(slurp_symbol_table): Use header byte order, not target byte order, for reading
symbol data.
Diffstat (limited to 'bfd/aout-target.h')
-rw-r--r-- | bfd/aout-target.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bfd/aout-target.h b/bfd/aout-target.h index 3dec207..9b8273a 100644 --- a/bfd/aout-target.h +++ b/bfd/aout-target.h @@ -22,14 +22,16 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "aout/ar.h" /*#include "libaout.h"*/ +extern CONST struct reloc_howto_struct * NAME(aout,reloc_type_lookup) (); + /* Set parameters about this a.out file that are machine-dependent. This routine is called from some_aout_object_p just before it returns. */ +#ifndef MY_callback static bfd_target * DEFUN(MY(callback),(abfd), bfd *abfd) { struct internal_exec *execp = exec_hdr (abfd); - struct aout_backend_data *abdp; /* Calculate the file positions of the parts of a newly read aout header */ obj_textsec (abfd)->_raw_size = N_TXTSIZE(*execp); @@ -72,6 +74,7 @@ DEFUN(MY(callback),(abfd), return abfd->xvec; } +#endif #ifndef MY_object_p /* Finish up the reading of an a.out file header */ @@ -153,7 +156,6 @@ static boolean DEFUN(MY(write_object_contents),(abfd), bfd *abfd) { - bfd_size_type data_pad = 0; struct external_exec exec_bytes; struct internal_exec *execp = exec_hdr (abfd); @@ -320,7 +322,7 @@ static CONST struct aout_backend_data MY(backend_data) = { #define MY_bfd_debug_info_accumulat NAME(aout,bfd_debug_info_accumulat) #endif #ifndef MY_reloc_howto_type_lookup -#define MY_reloc_howto_type_lookup 0 +#define MY_reloc_howto_type_lookup NAME(aout,reloc_type_lookup) #endif #ifndef MY_make_debug_symbol #define MY_make_debug_symbol 0 |