2002-02-10 Daniel Jacobowitz <drow@mvista.com>
authorDaniel Jacobowitz <drow@false.org>
Mon, 11 Feb 2002 02:17:39 +0000 (02:17 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 11 Feb 2002 02:17:39 +0000 (02:17 +0000)
        * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
        variable warnings.
        * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
        comparison warning.
        * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
        cast warnings for the common case.

bfd/ChangeLog
bfd/coff-rs6000.c
bfd/elf32-sh.c
bfd/trad-core.c

index 411a400c92a3f642a7e4faf651659b2d868b934b..31c25faa77c9f03c554442de39bf6d8d65eddc36 100644 (file)
@@ -1,3 +1,12 @@
+2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
+
+       * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
+       variable warnings.
+       * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
+       comparison warning.
+       * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
+       cast warnings for the common case.
+
 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
 
        * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
index 2d6d6e95056ad59a68d02946d283750fd58a2351..27729291f907ff8c54743c5a134be95a0539510b 100644 (file)
@@ -3062,7 +3062,7 @@ xcoff_generate_rtinit  (abfd, init, fini)
   bfd_byte reloc_ext[RELSZ * 2];
   bfd_byte *data_buffer;
   bfd_size_type data_buffer_size;
-  bfd_byte *string_table, *st_tmp;
+  bfd_byte *string_table = NULL, *st_tmp = NULL;
   bfd_size_type string_table_size;
   bfd_vma val;
   size_t initsz, finisz;
index 150d912b3ccb1b69870f154572477458b5b3b513..d6033456b2aff14ac86866817c1adb3296d9988e 100644 (file)
@@ -2066,7 +2066,8 @@ sh_elf_relax_section (abfd, sec, link_info, again)
          shndx = shndx_buf + (shndx_buf ? ELF32_R_SYM (irelfn->r_info) : 0);
          bfd_elf32_swap_symbol_in (abfd, esym, shndx, &isym);
 
-         if (isym.st_shndx != _bfd_elf_section_from_bfd_section (abfd, sec))
+         if (isym.st_shndx
+             != (unsigned int) _bfd_elf_section_from_bfd_section (abfd, sec))
            {
              ((*_bfd_error_handler)
               (_("%s: 0x%lx: warning: symbol in unexpected section"),
index aed0b50d1fcc7f03bd28c04b4e85aa77f5649b76..e27cd35e8672e6dc9dcf027f1e148f3a0cb1b1bb 100644 (file)
@@ -211,7 +211,7 @@ trad_unix_core_file_p (abfd)
      0 is at the place pointed to by u_ar0 (by setting the vma of the start
      of the section to -u_ar0).  GDB uses this info to locate the regs,
      using minor trickery to get around the offset-or-absolute-addr problem.  */
-  core_regsec (abfd)->vma = - (bfd_vma) u.u_ar0;
+  core_regsec (abfd)->vma = - (bfd_vma) (unsigned long) u.u_ar0;
 
   core_datasec (abfd)->filepos = NBPG * UPAGES;
   core_stacksec (abfd)->filepos = (NBPG * UPAGES) + NBPG * u.u_dsize