* elf.c (elf_fake_sections): Use correct cast for sh_name.
authorAlan Modra <amodra@gmail.com>
Fri, 9 May 2003 10:58:12 +0000 (10:58 +0000)
committerAlan Modra <amodra@gmail.com>
Fri, 9 May 2003 10:58:12 +0000 (10:58 +0000)
bfd/ChangeLog
bfd/elf.c

index 2d344b00dfbef91e397035fea45f1434d324cb1a..024813390e831bc80d1064133337ea04ce53ce9a 100644 (file)
@@ -1,3 +1,7 @@
+2003-05-09  Andrey Petrov <petrov@netbsd.org>
+
+       * elf.c (elf_fake_sections): Use correct cast for sh_name.
+
 2003-05-09  Alan Modra  <amodra@bigpond.net.au>
 
        * elflink.c (_bfd_elf_link_create_dynamic_sections): Move from
index 321db3e8e16d15e79f0efb1c79c1eaf1da6316a6..737f4954711e7c1e0afb90eee6cf8bf7aeb49d35 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -2365,9 +2365,9 @@ elf_fake_sections (abfd, asect, failedptrarg)
 
   this_hdr = &elf_section_data (asect)->this_hdr;
 
-  this_hdr->sh_name = (unsigned long) _bfd_elf_strtab_add (elf_shstrtab (abfd),
-                                                          asect->name, FALSE);
-  if (this_hdr->sh_name == (unsigned long) -1)
+  this_hdr->sh_name = (unsigned int) _bfd_elf_strtab_add (elf_shstrtab (abfd),
+                                                         asect->name, FALSE);
+  if (this_hdr->sh_name == (unsigned int) -1)
     {
       *failedptr = TRUE;
       return;