diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2000-12-26 19:50:50 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@codesourcery.com> | 2000-12-26 19:50:50 +0000 |
commit | 8cbb3db1bb1368ddb04f0db2d735f9d398a29529 (patch) | |
tree | 6064bb6e92cb6adae76d0b517e83aad42fcc0865 /bfd/versados.c | |
parent | ca94e64bb8974c9c7153f0be14706267c24c2b1d (diff) | |
download | gdb-8cbb3db1bb1368ddb04f0db2d735f9d398a29529.tar.gz |
2000-12-26 Kazu Hirata <kazu@hxi.com>
* vaxnetbsd.c: Fix formatting.
* versados.c: Likewise.
* vms-gsd.c: Likewise.
* vms-hdr.c: Likewise.
* vms-misc.c: Likewise.
Diffstat (limited to 'bfd/versados.c')
-rw-r--r-- | bfd/versados.c | 32 |
1 files changed, 3 insertions, 29 deletions
diff --git a/bfd/versados.c b/bfd/versados.c index d3ebda4c595..28c3dd27ef8 100644 --- a/bfd/versados.c +++ b/bfd/versados.c @@ -36,7 +36,6 @@ o Object Text Recrod o End Record - */ #include "bfd.h" @@ -44,18 +43,15 @@ #include "libbfd.h" #include "libiberty.h" - static boolean versados_mkobject PARAMS ((bfd *)); static boolean versados_scan PARAMS ((bfd *)); static const bfd_target *versados_object_p PARAMS ((bfd *)); - #define VHEADER '1' #define VESTDEF '2' #define VOTR '3' #define VEND '4' - #define ES_BASE 17 /* first symbol has esdid 17 */ /* Per file target dependent information */ @@ -145,11 +141,7 @@ union ext_any struct ext_otr otr; }; -/* Initialize by filling in the hex conversion array. */ - - - - +/* Initialize by filling in the hex conversion array. */ /* Set up the tdata information. */ @@ -171,13 +163,10 @@ versados_mkobject (abfd) return true; } - /* Report a problem in an S record file. FIXME: This probably should not call fprintf, but we really do need some mechanism for printing error messages. */ - - static asymbol * versados_new_symbol (abfd, snum, name, val, sec) bfd *abfd; @@ -195,7 +184,6 @@ versados_new_symbol (abfd, snum, name, val, sec) return n; } - static int get_record (abfd, ptr) bfd *abfd; @@ -244,7 +232,6 @@ new_symbol_string (abfd, name) return n; } - static void process_esd (abfd, esd, pass) bfd *abfd; @@ -296,7 +283,6 @@ process_esd (abfd, esd, pass) } break; - case ESD_ABS: size = get_4 (&ptr); start = get_4 (&ptr); @@ -356,7 +342,6 @@ reloc_howto_type versados_howto_table[] = "-v32", true, 0xffffffff, 0xffffffff, false), }; - static int get_offset (len, ptr) int len; @@ -405,7 +390,6 @@ process_otr (abfd, otr, pass) int offsetlen = flag & 0x7; int j; - if (esdids == 0) { /* A zero esdid means the new pc is the offset given */ @@ -433,7 +417,7 @@ process_otr (abfd, otr, pass) int rn = EDATA (abfd, otr->esdid - 1).relocs++; if (pass == 1) { - /* this is the first pass over the data, + /* this is the first pass over the data, just remember that we need a reloc */ } else @@ -471,7 +455,6 @@ process_otr (abfd, otr, pass) if (!contents && need_contents) esdid->contents = (unsigned char *) bfd_alloc (abfd, esdid->section->_raw_size); - } static boolean @@ -586,8 +569,6 @@ versados_scan (abfd) return 1; } - - /* Check whether an existing file is a versados file. */ static const bfd_target * @@ -633,7 +614,6 @@ versados_object_p (abfd) return abfd->xvec; } - static boolean versados_pass_2 (abfd) bfd *abfd; @@ -648,7 +628,6 @@ versados_pass_2 (abfd) VDATA (abfd)->es_done = ES_BASE; - /* read records till we get to where we want to be */ while (1) @@ -701,8 +680,6 @@ versados_set_section_contents (abfd, section, location, offset, bytes_to_do) return false; } - -/*ARGSUSED */ static int versados_sizeof_headers (abfd, exec) bfd *abfd ATTRIBUTE_UNUSED; @@ -755,7 +732,6 @@ versados_get_symtab (abfd, alocation) return symcount; } -/*ARGSUSED */ void versados_get_symbol_info (ignore_abfd, symbol, ret) bfd *ignore_abfd ATTRIBUTE_UNUSED; @@ -765,7 +741,6 @@ versados_get_symbol_info (ignore_abfd, symbol, ret) bfd_symbol_info (symbol, ret); } -/*ARGSUSED */ void versados_print_symbol (ignore_abfd, afile, symbol, how) bfd *ignore_abfd ATTRIBUTE_UNUSED; @@ -796,7 +771,6 @@ versados_get_reloc_upper_bound (abfd, asect) return (asect->reloc_count + 1) * sizeof (arelent *); } - long versados_canonicalize_reloc (abfd, section, relptr, symbols) bfd *abfd; @@ -922,6 +896,6 @@ const bfd_target versados_vec = BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), NULL, - + (PTR) 0 }; |