diff options
author | Alan Modra <amodra@gmail.com> | 2005-02-24 13:34:38 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-02-24 13:34:38 +0000 |
commit | f60ca5e351eb190cc10c1a9d414fc8894737e565 (patch) | |
tree | 4feafb4eb5044d995a35150762bd54a85578536b /bfd/vms.c | |
parent | f3f4bccaf6189a2a28e9c1436fabf2d668f8ef03 (diff) | |
download | gdb-f60ca5e351eb190cc10c1a9d414fc8894737e565.zip gdb-f60ca5e351eb190cc10c1a9d414fc8894737e565.tar.gz gdb-f60ca5e351eb190cc10c1a9d414fc8894737e565.tar.bz2 |
* coffcode.h (coff_print_aux): Warning fix.
* elf-m10300.c (mn10300_elf_relax_section): Use section->id
instead of section pointer to identify.
* coff-h8300.c (h8300_reloc16_extra_cases): Likewise. Allocate
the correct size buffer for local sym mangling too.
(h8300_bfd_link_add_symbols): Likewise.
* elf32-sh-symbian.c (sh_symbian_process_embedded_commands): Fix
warning.
* elf32-sh64.c (shmedia_prepare_reloc): Use %B and %p in error message
* elf32-xtensa.c (literal_value_hash): Warning fix.
* versados.c (process_otr): Warning fix.
(versados_canonicalize_reloc): Likewise.
* vms-gsd.c (_bfd_vms_slurp_gsd): Warning fix.
* vms.c (fill_section_ptr): Warning fix.
Diffstat (limited to 'bfd/vms.c')
-rw-r--r-- | bfd/vms.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,6 +1,6 @@ /* vms.c -- BFD back-end for VAX (openVMS/VAX) and EVAX (openVMS/Alpha) files. - Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 + Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. Written by Klaus K"ampf (kkaempf@rmi.de) @@ -365,10 +365,10 @@ fill_section_ptr (entry, sections) /* fill forward references (these contain section number, not section ptr). */ - if ((unsigned int) sec < priv_section_count) + if ((unsigned int) (size_t) sec < priv_section_count) { - sec = ((vms_symbol_entry *)entry)->symbol->section = - ((asection **)sections)[(int)sec]; + sec = ((vms_symbol_entry *) entry)->symbol->section = + ((asection **) sections)[(unsigned int) (size_t) sec]; } if (strcmp (sym->name, sec->name) == 0) |