mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 02:50:08 +08:00
* elf.c (elf_fake_sections): Use correct cast for sh_name.
This commit is contained in:
@ -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>
|
2003-05-09 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* elflink.c (_bfd_elf_link_create_dynamic_sections): Move from
|
* elflink.c (_bfd_elf_link_create_dynamic_sections): Move from
|
||||||
|
@ -2365,9 +2365,9 @@ elf_fake_sections (abfd, asect, failedptrarg)
|
|||||||
|
|
||||||
this_hdr = &elf_section_data (asect)->this_hdr;
|
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);
|
asect->name, FALSE);
|
||||||
if (this_hdr->sh_name == (unsigned long) -1)
|
if (this_hdr->sh_name == (unsigned int) -1)
|
||||||
{
|
{
|
||||||
*failedptr = TRUE;
|
*failedptr = TRUE;
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user