2005-08-03 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 4 Aug 2005 00:39:02 +0000 (00:39 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 4 Aug 2005 00:39:02 +0000 (00:39 +0000)
* elfxx-ia64.c (elfNN_ia64_relax_section): Resize .rela.got
only if it isn't NULL.

bfd/ChangeLog
bfd/elfxx-ia64.c

index f413454ae307ec41d869782b6e5c42e61dbd8bf7..1f82cdc14a5c28cf27324677f7400bd6ea09daef 100644 (file)
@@ -1,3 +1,8 @@
+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
index 7c1837b656b134599543e6ad987ce21a9cbd5836..85f715ce2eedf1cb9f3a63515d79b3b9e3672ec5 100644 (file)
@@ -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;