aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-10-17 12:01:05 +0000
committerAlan Modra <amodra@gmail.com>2001-10-17 12:01:05 +0000
commit973ffd6335bb35d78d2ea2b844019f38ac9dbba5 (patch)
treea548469d1bf253352b594add8587d718e094299d /bfd/elf.c
parent1ba7c32c230bcfb82b8a052d8fc4f9d4b7c0de2d (diff)
downloadgdb-973ffd6335bb35d78d2ea2b844019f38ac9dbba5.zip
gdb-973ffd6335bb35d78d2ea2b844019f38ac9dbba5.tar.gz
gdb-973ffd6335bb35d78d2ea2b844019f38ac9dbba5.tar.bz2
* elf-m10200.c (mn10200_elf_relax_section): Cast assignment to
Elf_Internal_Shdr.contents now that it's no longer a PTR. * elf-m10300.c (mn10300_elf_relax_section): Likewise. * elf32-h8300.c (elf32_h8_relax_section): Likewise. * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise. * elf32-sh.c (sh_elf_relax_section): Likewise. * elf64-alpha.c (elf64_alpha_relax_section): Likewise. * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise. * elf.c (setup_group): Warning fixes. * elflink.h (elf_link_sort_relocs): Likewise. * pdp11.c (slurp_reloc_table): Likewise.
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 feffd7c..16c6fcb 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -384,7 +384,7 @@ setup_group (abfd, hdr, newsect)
}
if (num_group == 0)
- num_group = -1;
+ num_group = (unsigned) -1;
elf_tdata (abfd)->num_group = num_group;
if (num_group > 0)
@@ -402,7 +402,7 @@ setup_group (abfd, hdr, newsect)
Elf_Internal_Shdr *shdr = elf_elfsections (abfd)[i];
if (shdr->sh_type == SHT_GROUP && shdr->sh_size >= 8)
{
- char *src;
+ unsigned char *src;
Elf_Internal_Group *dest;
/* Add to list of sections. */
@@ -502,7 +502,7 @@ setup_group (abfd, hdr, newsect)
pos = elf_tdata (abfd)->symtab_hdr.sh_offset;
pos += shdr->sh_info * bed->s->sizeof_sym;
if (bfd_seek (abfd, pos, SEEK_SET) != 0
- || bfd_bread (ename, 4, abfd) != 4)
+ || bfd_bread (ename, (bfd_size_type) 4, abfd) != 4)
return false;
iname = H_GET_32 (abfd, ename);
gname = elf_string_from_elf_strtab (abfd, iname);