aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-05-09 10:58:12 +0000
committerAlan Modra <amodra@gmail.com>2003-05-09 10:58:12 +0000
commite57b535673bf8d486684a8c38023b9bd146d8b9f (patch)
tree22e3b06ec24c32b8927455a2df28fd2b805e4379 /bfd/elf.c
parentefdffbe2684698fd65c40419add324ed8b2d9d0b (diff)
downloadgdb-e57b535673bf8d486684a8c38023b9bd146d8b9f.zip
gdb-e57b535673bf8d486684a8c38023b9bd146d8b9f.tar.gz
gdb-e57b535673bf8d486684a8c38023b9bd146d8b9f.tar.bz2
* elf.c (elf_fake_sections): Use correct cast for sh_name.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 321db3e..737f495 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;