From: H.J. Lu Date: Thu, 4 Aug 2005 00:39:02 +0000 (+0000) Subject: 2005-08-03 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90b263f311be83eb53821908bbec2a18e2b1ce69;p=binutils-gdb.git 2005-08-03 H.J. Lu * elfxx-ia64.c (elfNN_ia64_relax_section): Resize .rela.got only if it isn't NULL. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f413454ae30..1f82cdc14a5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-08-03 H.J. Lu + + * elfxx-ia64.c (elfNN_ia64_relax_section): Resize .rela.got + only if it isn't NULL. + 2005-08-03 H.J. Lu * elf32-i386.c (elf_howto_table): Undo the overflow change for 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;