aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-07-10 04:59:42 +0000
committerAlan Modra <amodra@gmail.com>2002-07-10 04:59:42 +0000
commit0594c12d8e99dccd69fc9c771ab6c0415300b5d9 (patch)
treef7800e4d825f8db111afb923204548904614171a /bfd/elf.c
parentb851d07bfd7deab3fd46ac64b1c5d9b56f218676 (diff)
downloadgdb-0594c12d8e99dccd69fc9c771ab6c0415300b5d9.zip
gdb-0594c12d8e99dccd69fc9c771ab6c0415300b5d9.tar.gz
gdb-0594c12d8e99dccd69fc9c771ab6c0415300b5d9.tar.bz2
* elf.c: (assign_section_numbers) Set sh_entsize for .stab only
when not already set. * elf64-sparc.c: (sparc64_elf_fake_sections): New function. (elf_backend_fake_sections): Define.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 8dcb4d5..ef2c3da 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -2760,8 +2760,9 @@ assign_section_numbers (abfd)
elf_section_data (s)->this_hdr.sh_link = d->this_idx;
/* This is a .stab section. */
- elf_section_data (s)->this_hdr.sh_entsize =
- 4 + 2 * bfd_get_arch_size (abfd) / 8;
+ if (elf_section_data (s)->this_hdr.sh_entsize == 0)
+ elf_section_data (s)->this_hdr.sh_entsize
+ = 4 + 2 * bfd_get_arch_size (abfd) / 8;
}
}
break;