diff options
author | Alan Modra <amodra@gmail.com> | 2002-07-10 04:59:42 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-07-10 04:59:42 +0000 |
commit | 0594c12d8e99dccd69fc9c771ab6c0415300b5d9 (patch) | |
tree | f7800e4d825f8db111afb923204548904614171a /bfd/elf.c | |
parent | b851d07bfd7deab3fd46ac64b1c5d9b56f218676 (diff) | |
download | gdb-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |