mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
* oasys.c: Add missing prototypes.
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused attribute for parameter. * elf.c (_bfd_elf_reloc_type_class): Likewise. * versados.c (get_4): Make static. (get_10): Make static. Add missing prototypes. (process_esd): Fix call to versados_new_symbol.
This commit is contained in:
@ -1,3 +1,16 @@
|
|||||||
|
2001-08-25 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
* oasys.c: Add missing prototypes.
|
||||||
|
|
||||||
|
* elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
|
||||||
|
attribute for parameter.
|
||||||
|
* elf.c (_bfd_elf_reloc_type_class): Likewise.
|
||||||
|
|
||||||
|
* versados.c (get_4): Make static.
|
||||||
|
(get_10): Make static.
|
||||||
|
Add missing prototypes.
|
||||||
|
(process_esd): Fix call to versados_new_symbol.
|
||||||
|
|
||||||
2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
|
2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
|
||||||
|
|
||||||
* coff-a29k.c: Add missing prototypes.
|
* coff-a29k.c: Add missing prototypes.
|
||||||
|
@ -6063,7 +6063,7 @@ _bfd_elf_fprintf_vma (abfd, stream, value)
|
|||||||
|
|
||||||
enum elf_reloc_type_class
|
enum elf_reloc_type_class
|
||||||
_bfd_elf_reloc_type_class (type)
|
_bfd_elf_reloc_type_class (type)
|
||||||
int type;
|
int type ATTRIBUTE_UNUSED;
|
||||||
{
|
{
|
||||||
return reloc_class_normal;
|
return reloc_class_normal;
|
||||||
}
|
}
|
||||||
|
@ -3219,7 +3219,7 @@ elf64_alpha_calc_dynrel_sizes (h, info)
|
|||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
elf64_alpha_size_dynamic_sections (output_bfd, info)
|
elf64_alpha_size_dynamic_sections (output_bfd, info)
|
||||||
bfd *output_bfd;
|
bfd *output_bfd ATTRIBUTE_UNUSED;
|
||||||
struct bfd_link_info *info;
|
struct bfd_link_info *info;
|
||||||
{
|
{
|
||||||
bfd *dynobj;
|
bfd *dynobj;
|
||||||
|
24
bfd/oasys.c
24
bfd/oasys.c
@ -1,5 +1,5 @@
|
|||||||
/* BFD back-end for oasys objects.
|
/* BFD back-end for oasys objects.
|
||||||
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999
|
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2001
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
Written by Steve Chamberlain of Cygnus Support, <sac@cygnus.com>.
|
Written by Steve Chamberlain of Cygnus Support, <sac@cygnus.com>.
|
||||||
|
|
||||||
@ -38,6 +38,28 @@ static boolean oasys_write_syms PARAMS ((bfd *));
|
|||||||
static boolean oasys_write_header PARAMS ((bfd *));
|
static boolean oasys_write_header PARAMS ((bfd *));
|
||||||
static boolean oasys_write_end PARAMS ((bfd *));
|
static boolean oasys_write_end PARAMS ((bfd *));
|
||||||
static boolean oasys_write_data PARAMS ((bfd *));
|
static boolean oasys_write_data PARAMS ((bfd *));
|
||||||
|
static size_t oasys_string_length PARAMS ((oasys_record_union_type *));
|
||||||
|
static boolean oasys_slurp_symbol_table PARAMS ((bfd *const));
|
||||||
|
static long int oasys_get_symtab_upper_bound PARAMS ((bfd *const));
|
||||||
|
static const bfd_target *oasys_archive_p PARAMS ((bfd *));
|
||||||
|
static boolean oasys_mkobject PARAMS ((bfd *));
|
||||||
|
static const bfd_target *oasys_object_p PARAMS ((bfd *));
|
||||||
|
static void oasys_get_symbol_info PARAMS ((bfd *, asymbol *, symbol_info *));
|
||||||
|
static void oasys_print_symbol PARAMS ((bfd *, void *, asymbol *, bfd_print_symbol_type));
|
||||||
|
static boolean oasys_new_section_hook PARAMS ((bfd *, asection *));
|
||||||
|
static long int oasys_get_reloc_upper_bound PARAMS ((bfd *, sec_ptr));
|
||||||
|
static boolean oasys_get_section_contents
|
||||||
|
PARAMS ((bfd *, sec_ptr, void *, file_ptr, bfd_size_type));
|
||||||
|
static int comp PARAMS ((const void *, const void *));
|
||||||
|
static boolean oasys_write_object_contents PARAMS ((bfd *));
|
||||||
|
static boolean oasys_set_section_contents
|
||||||
|
PARAMS ((bfd *, sec_ptr, void *, file_ptr, bfd_size_type));
|
||||||
|
static asymbol *oasys_make_empty_symbol PARAMS ((bfd *));
|
||||||
|
static bfd *oasys_openr_next_archived_file PARAMS ((bfd *, bfd *));
|
||||||
|
static boolean oasys_find_nearest_line
|
||||||
|
PARAMS ((bfd *, asection *, asymbol **, bfd_vma, char **, char **, unsigned int *));
|
||||||
|
static int oasys_generic_stat_arch_elt PARAMS ((bfd *, struct stat *));
|
||||||
|
static int oasys_sizeof_headers PARAMS ((bfd *, boolean));
|
||||||
|
|
||||||
/* Read in all the section data and relocation stuff too */
|
/* Read in all the section data and relocation stuff too */
|
||||||
PROTO (static boolean, oasys_slurp_section_data, (bfd * CONST abfd));
|
PROTO (static boolean, oasys_slurp_section_data, (bfd * CONST abfd));
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* BFD back-end for VERSAdos-E objects.
|
/* BFD back-end for VERSAdos-E objects.
|
||||||
Copyright 1995, 1996, 1998, 1999, 2000 Free Software Foundation, Inc.
|
Copyright 1995, 1996, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||||
Written by Steve Chamberlain of Cygnus Support <sac@cygnus.com>.
|
Written by Steve Chamberlain of Cygnus Support <sac@cygnus.com>.
|
||||||
|
|
||||||
Versados is a Motorola trademark.
|
Versados is a Motorola trademark.
|
||||||
@ -46,6 +46,18 @@
|
|||||||
static boolean versados_mkobject PARAMS ((bfd *));
|
static boolean versados_mkobject PARAMS ((bfd *));
|
||||||
static boolean versados_scan PARAMS ((bfd *));
|
static boolean versados_scan PARAMS ((bfd *));
|
||||||
static const bfd_target *versados_object_p PARAMS ((bfd *));
|
static const bfd_target *versados_object_p PARAMS ((bfd *));
|
||||||
|
static asymbol *versados_new_symbol PARAMS ((bfd *, int, const char *, bfd_vma, asection *));
|
||||||
|
static char *new_symbol_string PARAMS ((bfd *, char *));
|
||||||
|
static const bfd_target *versados_object_p PARAMS ((bfd *));
|
||||||
|
static boolean versados_pass_2 PARAMS ((bfd *));
|
||||||
|
static boolean versados_get_section_contents
|
||||||
|
PARAMS ((bfd *, asection *, void *, file_ptr, bfd_size_type));
|
||||||
|
static boolean versados_set_section_contents
|
||||||
|
PARAMS ((bfd *, sec_ptr, void *, file_ptr, bfd_size_type));
|
||||||
|
static int versados_sizeof_headers PARAMS ((bfd *, boolean));
|
||||||
|
static asymbol *versados_make_empty_symbol PARAMS ((bfd *));
|
||||||
|
static long int versados_get_symtab_upper_bound PARAMS ((bfd *));
|
||||||
|
static long int versados_get_symtab PARAMS ((bfd *, asymbol **));
|
||||||
|
|
||||||
#define VHEADER '1'
|
#define VHEADER '1'
|
||||||
#define VESTDEF '2'
|
#define VESTDEF '2'
|
||||||
@ -141,6 +153,13 @@ union ext_any
|
|||||||
struct ext_otr otr;
|
struct ext_otr otr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static int get_record PARAMS ((bfd *, union ext_any *));
|
||||||
|
static int get_4 PARAMS ((unsigned char **));
|
||||||
|
static void get_10 PARAMS ((unsigned char **, char *));
|
||||||
|
static void process_esd PARAMS ((bfd *, struct ext_esd *, int));
|
||||||
|
static int get_offset PARAMS ((int, unsigned char *));
|
||||||
|
static void process_otr PARAMS ((bfd *, struct ext_otr *, int));
|
||||||
|
|
||||||
/* Initialize by filling in the hex conversion array. */
|
/* Initialize by filling in the hex conversion array. */
|
||||||
|
|
||||||
/* Set up the tdata information. */
|
/* Set up the tdata information. */
|
||||||
@ -195,7 +214,7 @@ get_record (abfd, ptr)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
get_4 (pp)
|
get_4 (pp)
|
||||||
unsigned char **pp;
|
unsigned char **pp;
|
||||||
{
|
{
|
||||||
@ -204,7 +223,7 @@ get_4 (pp)
|
|||||||
return (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | (p[3] << 0);
|
return (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | (p[3] << 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
get_10 (pp, name)
|
get_10 (pp, name)
|
||||||
unsigned char **pp;
|
unsigned char **pp;
|
||||||
char *name;
|
char *name;
|
||||||
@ -276,7 +295,7 @@ process_esd (abfd, esd, pass)
|
|||||||
asymbol *s;
|
asymbol *s;
|
||||||
char *n = new_symbol_string (abfd, name);
|
char *n = new_symbol_string (abfd, name);
|
||||||
s = versados_new_symbol (abfd, snum, n, 0,
|
s = versados_new_symbol (abfd, snum, n, 0,
|
||||||
&bfd_und_section, scn);
|
&bfd_und_section);
|
||||||
esidx = VDATA (abfd)->es_done++;
|
esidx = VDATA (abfd)->es_done++;
|
||||||
RDATA (abfd, esidx - ES_BASE) = s;
|
RDATA (abfd, esidx - ES_BASE) = s;
|
||||||
}
|
}
|
||||||
@ -311,7 +330,7 @@ process_esd (abfd, esd, pass)
|
|||||||
{
|
{
|
||||||
asymbol *s;
|
asymbol *s;
|
||||||
char *n = new_symbol_string (abfd, name);
|
char *n = new_symbol_string (abfd, name);
|
||||||
s = versados_new_symbol (abfd, snum + VDATA (abfd)->nrefs, n, val, sec, scn);
|
s = versados_new_symbol (abfd, snum + VDATA (abfd)->nrefs, n, val, sec);
|
||||||
s->flags |= BSF_GLOBAL;
|
s->flags |= BSF_GLOBAL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user