forked from Imagelibrary/binutils-gdb
* elf.c (elf_fake_sections): Use correct cast for sh_name.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user