diff options
author | Alan Modra <amodra@bigpond.net.au> | 2003-05-09 10:58:12 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2003-05-09 10:58:12 +0000 |
commit | d335176ce4302f739a683b654c58ec35e341221a (patch) | |
tree | 5b0ef6c0fc067b017689a68b06ee7efa60ab4cdc | |
parent | 87da888ceec705f22eb3c408fcf483b7fe54e73a (diff) | |
download | gdb-d335176ce4302f739a683b654c58ec35e341221a.tar.gz |
* elf.c (elf_fake_sections): Use correct cast for sh_name.
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/elf.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2d344b00dfb..024813390e8 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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 diff --git a/bfd/elf.c b/bfd/elf.c index 321db3e8e16..737f4954711 100644 --- 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; |