aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-hppa.c
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2015-09-12 12:50:55 -0400
committerJohn David Anglin <danglin@gcc.gnu.org>2015-09-12 12:50:55 -0400
commitf3c3938c1c1a57f78e1be9d2dbb9ea0cda12edf6 (patch)
tree830a3fdb00edddb88543fe5b778723e9026b8203 /bfd/elf32-hppa.c
parentd8f16f3e9f709dd06bb3c3494bf6d39d150d959b (diff)
downloadgdb-f3c3938c1c1a57f78e1be9d2dbb9ea0cda12edf6.zip
gdb-f3c3938c1c1a57f78e1be9d2dbb9ea0cda12edf6.tar.gz
gdb-f3c3938c1c1a57f78e1be9d2dbb9ea0cda12edf6.tar.bz2
Set .plt entry size to 0 in elf32-hppa.c
Diffstat (limited to 'bfd/elf32-hppa.c')
-rw-r--r--bfd/elf32-hppa.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c
index 8b56ac4..8f0f4d0 100644
--- a/bfd/elf32-hppa.c
+++ b/bfd/elf32-hppa.c
@@ -4585,9 +4585,10 @@ elf32_hppa_finish_dynamic_sections (bfd *output_bfd,
if (htab->splt != NULL && htab->splt->size != 0)
{
- /* Set plt entry size. */
- elf_section_data (htab->splt->output_section)
- ->this_hdr.sh_entsize = PLT_ENTRY_SIZE;
+ /* Set plt entry size to 0 instead of PLT_ENTRY_SIZE, since we add the
+ plt stubs and as such the section does not hold a table of fixed-size
+ entries. */
+ elf_section_data (htab->splt->output_section)->this_hdr.sh_entsize = 0;
if (htab->need_plt_stub)
{