From 524f76c97ebd0fadd977a5ef8b70acccbfa4bbd9 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 1 Sep 2001 10:29:27 +0000 Subject: [PATCH] * vms-tir.c: Add missing prototypes. * vms-hdr.c: Likewise. * vms-gsd.c: Likewise. * vms-misc.c: Likewise. --- bfd/ChangeLog | 11 +++++++++-- bfd/vms-gsd.c | 5 ++++- bfd/vms-hdr.c | 6 +++++- bfd/vms-misc.c | 4 ++++ bfd/vms-tir.c | 13 ++++++++++++- 5 files changed, 34 insertions(+), 5 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 25083b1a7f..b5675768bd 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2001-09-01 Andreas Jaeger + + * vms-tir.c: Add missing prototypes. + * vms-hdr.c: Likewise. + * vms-gsd.c: Likewise. + * vms-misc.c: Likewise. + 2001-08-31 H.J. Lu * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename @@ -77,8 +84,8 @@ 2001-08-29 Tom Rix - * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that - does not follow a XTY_SD. + * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that + does not follow a XTY_SD. 2001-08-29 Alan Modra diff --git a/bfd/vms-gsd.c b/bfd/vms-gsd.c index 773823c0ba..5365853ef0 100644 --- a/bfd/vms-gsd.c +++ b/bfd/vms-gsd.c @@ -1,6 +1,6 @@ /* vms-gsd.c -- BFD back-end for VAX (openVMS/VAX) and EVAX (openVMS/Alpha) files. - Copyright 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. + Copyright 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. go and read the openVMS linker manual (esp. appendix B) if you don't know what's going on here :-) @@ -139,6 +139,9 @@ static struct sec_flags_struct evax_section_flags[] = { (SEC_IN_MEMORY|SEC_DATA|SEC_HAS_CONTENTS|SEC_ALLOC|SEC_LOAD) } }; +static flagword vms_secflag_by_name PARAMS ((bfd *, struct sec_flags_struct *, char *, int)); +static flagword vms_esecflag_by_name PARAMS ((struct sec_flags_struct *, char *, int)); + /* Retrieve bfd section flags by name and size */ static flagword diff --git a/bfd/vms-hdr.c b/bfd/vms-hdr.c index 228066f2e7..f98577d66b 100644 --- a/bfd/vms-hdr.c +++ b/bfd/vms-hdr.c @@ -1,6 +1,6 @@ /* vms-hdr.c -- BFD back-end for VMS/VAX (openVMS/VAX) and EVAX (openVMS/Alpha) files. - Copyright 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. + Copyright 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. HDR record handling functions EMH record handling functions @@ -36,6 +36,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_ALLOCA_H #include #endif + +static unsigned char *get_vms_time_string PARAMS ((void)); + + /*---------------------------------------------------------------------------*/ /* Read & process emh record diff --git a/bfd/vms-misc.c b/bfd/vms-misc.c index ce66a27678..f0ba285999 100644 --- a/bfd/vms-misc.c +++ b/bfd/vms-misc.c @@ -30,6 +30,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "vms.h" +static vms_section *add_new_contents PARAMS ((bfd *, sec_ptr)); +static int hash_string PARAMS ((const char *)); +static asymbol *new_symbol PARAMS ((bfd *, char *)); + /*-----------------------------------------------------------------------------*/ #if VMS_DEBUG /* debug functions */ diff --git a/bfd/vms-tir.c b/bfd/vms-tir.c index 1f3446c734..7ffe605fcd 100644 --- a/bfd/vms-tir.c +++ b/bfd/vms-tir.c @@ -1,6 +1,6 @@ /* vms-tir.c -- BFD back-end for VAX (openVMS/VAX) and EVAX (openVMS/Alpha) files. - Copyright 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. + Copyright 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. TIR record handling functions ETIR record handling functions @@ -49,6 +49,17 @@ static void image_write_b PARAMS ((bfd *abfd, unsigned int value)); static void image_write_w PARAMS ((bfd *abfd, unsigned int value)); static void image_write_l PARAMS ((bfd *abfd, unsigned long value)); static void image_write_q PARAMS ((bfd *abfd, uquad value)); +static int check_section PARAMS ((bfd *, int)); +static boolean etir_sta PARAMS ((bfd *, int, unsigned char *)); +static boolean etir_sto PARAMS ((bfd *, int, unsigned char *)); +static boolean etir_opr PARAMS ((bfd *, int, unsigned char *)); +static boolean etir_ctl PARAMS ((bfd *, int, unsigned char *)); +static boolean etir_stc PARAMS ((bfd *, int, unsigned char *)); +static asection *new_section PARAMS ((bfd *, int)); +static int alloc_section PARAMS ((bfd *, unsigned int)); +static int etir_cmd PARAMS ((bfd *, int, unsigned char *)); +static int analyze_tir PARAMS ((bfd *, unsigned char *, unsigned int)); +static int analyze_etir PARAMS ((bfd *, unsigned char *, unsigned int)); /*-----------------------------------------------------------------------------*/