diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-04-06 22:00:40 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-04-06 22:00:40 +0000 |
commit | 6812b6077e4a09eab08458428f09c28ec58fc514 (patch) | |
tree | 16be3cd70ca281aca8b810d71fe5dbc125cbe9c9 /bfd/coff-z8k.c | |
parent | 76336d506d079ddae02f26752357b5ea94582cb0 (diff) | |
download | gdb-6812b6077e4a09eab08458428f09c28ec58fc514.zip gdb-6812b6077e4a09eab08458428f09c28ec58fc514.tar.gz gdb-6812b6077e4a09eab08458428f09c28ec58fc514.tar.bz2 |
* targets.c (bfd_target): Rearranged fields in target vector.
Removed _bfd_debug_info_start, _bfd_debug_info_end and
_bfd_debug_info_accumulate, which were never used.
(BFD_JUMP_TABLE_GENERIC, BFD_JUMP_TABLE_COPY): Defined.
(BFD_JUMP_TABLE_CORE, BFD_JUMP_TABLE_ARCHIVE): Defined.
(BFD_JUMP_TABLE_SYMBOLS, BFD_JUMP_TABLE_RELOCS): Defined.
(BFD_JUMP_TABLE_WRITE, BFD_JUMP_TABLE_LINK): Defined.
* All backends: Changed to use the new BFD_JUMP_TABLE_* macros
rather than the single JUMP_TABLE macro. Removed many of the
weird macro definitions needed to support the monolithic
JUMP_TABLE.
* bfd-in.h (JUMP_TABLE): Removed.
* libbfd-in.h: Define a bunch of macros, and declare a few
functions, for use with the new BFD_JUMP_TABLE_* macros.
* libbfd.c (_bfd_dummy_new_section_hook): Removed.
(bfd_false): Set bfd_error_invalid_operation.
(bfd_nullvoidptr): Likewise.
(bfd_n1): New function.
(_bfd_nocore_core_file_matches_executable_p): Renamed from
_bfd_dummy_core_file_matches_executable_p.
(_bfd_nocore_core_file_failing_command): Similar rename. Set
bfd_error_invalid_operation.
(_bfd_nocore_core_file_failing_signal): Likewise.
(_bfd_generic_get_section_contents): Renamed from
bfd_generic_get_section_contents. Changed all callers.
(_bfd_generic_set_section_contents): Similar rename.
* ieee.c: #if 0 out ieee_bfd_debug_info_start,
ieee_bfd_debug_info_end, ieee_bfd_debug_info_accumulate. They
were never called.
* bfd-in2.h: Rebuilt.
* libbfd.h: Rebuilt.
Diffstat (limited to 'bfd/coff-z8k.c')
-rw-r--r-- | bfd/coff-z8k.c | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/bfd/coff-z8k.c b/bfd/coff-z8k.c index 59ea5e2..4681dd4 100644 --- a/bfd/coff-z8k.c +++ b/bfd/coff-z8k.c @@ -1,5 +1,5 @@ /* BFD back-end for Zilog Z800n COFF binaries. - Copyright 1992, 1993 Free Software Foundation, Inc. + Copyright 1992, 1993, 1994 Free Software Foundation, Inc. Contributed by Cygnus Support. Written by Steve Chamberlain, <sac@cygnus.com>. @@ -60,7 +60,7 @@ coff_z8k_select_reloc (howto) return howto->type; } -#define SELECT_RELOC(x,howto) x= coff_z8k_select_reloc(howto) +#define SELECT_RELOC(x,howto) x.r_type = coff_z8k_select_reloc(howto) #define BADMAG(x) Z8KBADMAG(x) @@ -80,9 +80,9 @@ coff_z8k_select_reloc (howto) */ static void -DEFUN (rtype2howto, (internal, dst), - arelent * internal AND - struct internal_reloc *dst) +rtype2howto (internal, dst) + arelent * internal; + struct internal_reloc *dst; { switch (dst->r_type) { @@ -120,12 +120,12 @@ DEFUN (rtype2howto, (internal, dst), reloc_processing(relent, reloc, symbols, abfd, section) static void -DEFUN (reloc_processing, (relent, reloc, symbols, abfd, section), - arelent * relent AND - struct internal_reloc *reloc AND - asymbol ** symbols AND - bfd * abfd AND - asection * section) +reloc_processing (relent, reloc, symbols, abfd, section) + arelent * relent; + struct internal_reloc *reloc; + asymbol ** symbols; + bfd * abfd; + asection * section; { relent->address = reloc->r_vaddr; rtype2howto (relent, reloc); @@ -265,6 +265,14 @@ bfd_target z8kcoff_vec = {bfd_false, coff_write_object_contents, /* bfd_write_contents */ _bfd_write_archive_contents, bfd_false}, - JUMP_TABLE (coff), + BFD_JUMP_TABLE_GENERIC (coff), + BFD_JUMP_TABLE_COPY (coff), + BFD_JUMP_TABLE_CORE (_bfd_nocore), + BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff), + BFD_JUMP_TABLE_SYMBOLS (coff), + BFD_JUMP_TABLE_RELOCS (coff), + BFD_JUMP_TABLE_WRITE (coff), + BFD_JUMP_TABLE_LINK (coff), + COFF_SWAP_TABLE, }; |