aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-05-07 09:15:26 +0000
committerAlan Modra <amodra@gmail.com>2001-05-07 09:15:26 +0000
commit062e23589d2fdda4a6de3e540150a8df23671a36 (patch)
tree7f1c1ed8b3e518ce8e109e134af7d55f9b3cab6f /bfd/elf.c
parentff88f59d5a07b674c669c08b64d047e501192b0c (diff)
downloadgdb-062e23589d2fdda4a6de3e540150a8df23671a36.zip
gdb-062e23589d2fdda4a6de3e540150a8df23671a36.tar.gz
gdb-062e23589d2fdda4a6de3e540150a8df23671a36.tar.bz2
* ecoff.c (bfd_debug_section): Fix initialization.
* elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it is always a positive integer. Cast away sign mismatch. * elf32-mips.c: Fix misleading comment and typo. (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use correct data type. * elflink.c: Fix typo. (_bfd_elf_create_dynamic_sections): Remove superfluous initialization. * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 602ebcd..d0cd62d 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -4734,7 +4734,7 @@ _bfd_elf_slurp_version_tables (abfd)
Elf_Internal_Verdef *iverdefarr;
Elf_Internal_Verdef iverdefmem;
unsigned int i;
- int maxidx;
+ unsigned int maxidx;
hdr = &elf_tdata (abfd)->dynverdef_hdr;
@@ -4754,8 +4754,8 @@ _bfd_elf_slurp_version_tables (abfd)
{
_bfd_elf_swap_verdef_in (abfd, everdef, &iverdefmem);
- if ((iverdefmem.vd_ndx & VERSYM_VERSION) > maxidx)
- maxidx = iverdefmem.vd_ndx & VERSYM_VERSION;
+ if ((iverdefmem.vd_ndx & ((unsigned) VERSYM_VERSION)) > maxidx)
+ maxidx = iverdefmem.vd_ndx & ((unsigned) VERSYM_VERSION);
everdef = ((Elf_External_Verdef *)
((bfd_byte *) everdef + iverdefmem.vd_next));