summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2005-08-04 00:39:02 +0000
committerH.J. Lu <hjl@lucon.org>2005-08-04 00:39:02 +0000
commit3ca0430bace43da47a1eb72171b1241ac895d96a (patch)
tree6de2c0b70df0969e75f9acae85d068aeec8552ac /bfd
parent26d2912616d687de30afcff14c1211352e13e11b (diff)
downloadgdb-3ca0430bace43da47a1eb72171b1241ac895d96a.tar.gz
2005-08-03 H.J. Lu <hongjiu.lu@intel.com>
* elfxx-ia64.c (elfNN_ia64_relax_section): Resize .rela.got only if it isn't NULL.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elfxx-ia64.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index f413454ae30..1f82cdc14a5 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2005-08-03 H.J. Lu <hongjiu.lu@intel.com>
+ * elfxx-ia64.c (elfNN_ia64_relax_section): Resize .rela.got
+ only if it isn't NULL.
+
+2005-08-03 H.J. Lu <hongjiu.lu@intel.com>
+
* elf32-i386.c (elf_howto_table): Undo the overflow change for
R_386_PC16 made on 2005-07-18.
diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c
index 7c1837b656b..85f715ce2ee 100644
--- a/bfd/elfxx-ia64.c
+++ b/bfd/elfxx-ia64.c
@@ -1338,7 +1338,8 @@ elfNN_ia64_relax_section (abfd, sec, link_info, again)
elfNN_ia64_dyn_sym_traverse (ia64_info, allocate_local_got, &data);
ia64_info->got_sec->size = data.ofs;
- if (ia64_info->root.dynamic_sections_created)
+ if (ia64_info->root.dynamic_sections_created
+ && ia64_info->rel_got_sec != NULL)
{
/* Resize .rela.got. */
ia64_info->rel_got_sec->size = 0;