Subject: elf.c warnings
To: None <tech-toolchain@netbsd.org>
From: Andrey Petrov <petrov@netbsd.org>
List: tech-toolchain
Date: 05/08/2003 08:50:25
The following patch eliminates warning when 'make build' with
gcc3.3 on sparc64. Any objections to this change?
Andrey
Index: elf.c
===================================================================
RCS file: /cvsroot/src/gnu/dist/toolchain/bfd/elf.c,v
retrieving revision 1.10
diff -u -p -r1.10 elf.c
--- elf.c 2003/03/01 12:25:58 1.10
+++ elf.c 2003/05/08 08:41:20
@@ -2319,10 +2319,10 @@ elf_fake_sections (abfd, asect, failedpt
this_hdr = &elf_section_data (asect)->this_hdr;
- this_hdr->sh_name = (unsigned long) _bfd_elf_strtab_add (elf_shstrtab (abfd),
+ this_hdr->sh_name = (unsigned int) _bfd_elf_strtab_add (elf_shstrtab (abfd),
asect->name, false);
/* XXXJRT consider making sh_name a bfd_size_type */
- if (this_hdr->sh_name == (unsigned long) -1)
+ if (this_hdr->sh_name == (unsigned int) -1)
{
*failedptr = true;
return;