aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1995-06-18 03:39:23 +0000
committerJeff Law <law@redhat.com>1995-06-18 03:39:23 +0000
commit9fe4fade3136122efe5f5ecf1f9ca4e33f5b8d56 (patch)
tree8457a995fb5e231a184e64c0e817abc281b3cce7 /bfd
parent9a6880571c8a7f48a01b0502574712e75864dd49 (diff)
downloadgdb-9fe4fade3136122efe5f5ecf1f9ca4e33f5b8d56.zip
gdb-9fe4fade3136122efe5f5ecf1f9ca4e33f5b8d56.tar.gz
gdb-9fe4fade3136122efe5f5ecf1f9ca4e33f5b8d56.tar.bz2
* elf32-hppa.c (elf32_hppa_size_stubs): Set the size of the stub
section if we get an error.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog3
-rw-r--r--bfd/elf32-hppa.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index d9aa3e0..edaaae3 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,8 @@
Sat Jun 17 09:40:44 1995 Jeff Law (law@snake.cs.utah.edu)
+ * elf32-hppa.c (elf32_hppa_size_stubs): Set the size of the stub
+ section if we get an error.
+
* elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Don't mess
with the operands of an R_PARISC_DPREL21L relocation if the insn
is not "addil <symbol>,%r27".
diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c
index d66679f..82cb6f3 100644
--- a/bfd/elf32-hppa.c
+++ b/bfd/elf32-hppa.c
@@ -2989,6 +2989,10 @@ error_return:
elf32_hppa_hash_table(link_info)->args_hash_table = NULL;
free (args_hash_table);
}
+ /* Set the size of the stub section to zero since we're never going
+ to create them. Avoids losing when we try to get its contents
+ too. */
+ bfd_set_section_size (stub_bfd, stub_sec, 0);
return false;
}