summaryrefslogtreecommitdiff
path: root/bfd/elf32-bfin.c
diff options
context:
space:
mode:
authorJie Zhang <jie.zhang@analog.com>2005-10-24 16:31:22 +0000
committerJie Zhang <jie.zhang@analog.com>2005-10-24 16:31:22 +0000
commita886d33869430050243a01462b61d18abac3630d (patch)
tree0bda97265d4c48cca8261f3798bdf89ecc2afe2e /bfd/elf32-bfin.c
parent8dccd6bba143d6f2eecc6e8803426430b359d974 (diff)
downloadbinutils-redhat-a886d33869430050243a01462b61d18abac3630d.tar.gz
bfd/
* 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.
Diffstat (limited to 'bfd/elf32-bfin.c')
-rw-r--r--bfd/elf32-bfin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c
index 7cfefd7c82..c1a1b7443a 100644
--- a/bfd/elf32-bfin.c
+++ b/bfd/elf32-bfin.c
@@ -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)