OSDN Git Service

bfd/
authorJie Zhang <jie.zhang@analog.com>
Mon, 24 Oct 2005 16:31:20 +0000 (16:31 +0000)
committerJie Zhang <jie.zhang@analog.com>
Mon, 24 Oct 2005 16:31:20 +0000 (16:31 +0000)
* elf32-bfin.c (bfd_bfin_elf32_create_embedded_relocs): Fix signedness
warning.
gas/
* Makefile.am (bfin-parse.h): Renamed from bfin-parse.tab.h.
(EXTRA_DIST): Add bfin-parse.h and bfin-lex.c.
* Makefile.in: Regenerate.
* config/bfin-lex.l: Include bfin-parse.h instead of bfin-parse.tab.h.
* config/tc-bfin.c (md_chars_to_number): Change the type of first
argument from unsigned char * to char * to remove signedness warnings.

bfd/ChangeLog
bfd/elf32-bfin.c

index 2d98ebd..d2de1e9 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-24  Jie Zhang <jie.zhang@analog.com>
+
+       * elf32-bfin.c (bfd_bfin_elf32_create_embedded_relocs): Fix signedness
+       warning.
+
 2005-10-24  Bernd Schmidt  <bernd.schmidt@analog.com>
 
        * elf32-bfin.c (bfin_howto_table): Set src_mask to 0 for all relocs.
index 7cfefd7..c1a1b74 100644 (file)
@@ -2764,7 +2764,7 @@ bfd_bfin_elf32_create_embedded_relocs (
       bfd_put_32 (abfd, irel->r_offset + datasec->output_offset, p);
       memset (p + 4, 0, 8);
       if (targetsec != NULL)
-       strncpy (p + 4, targetsec->output_section->name, 8);
+       strncpy ((char *) p + 4, targetsec->output_section->name, 8);
     }
 
   if (isymbuf != NULL && symtab_hdr->contents != (unsigned char *) isymbuf)