aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-ia64.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-08-04 00:39:02 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-08-04 00:39:02 +0000
commit90b263f311be83eb53821908bbec2a18e2b1ce69 (patch)
tree305d4b0d48d8bfb328c584f6ce2ac198d06ecfdb /bfd/elfxx-ia64.c
parent66096db758799f9c41671b228bc756c21c7be003 (diff)
downloadfsf-binutils-gdb-90b263f311be83eb53821908bbec2a18e2b1ce69.zip
fsf-binutils-gdb-90b263f311be83eb53821908bbec2a18e2b1ce69.tar.gz
fsf-binutils-gdb-90b263f311be83eb53821908bbec2a18e2b1ce69.tar.bz2
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/elfxx-ia64.c')
-rw-r--r--bfd/elfxx-ia64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c
index 7c1837b..85f715c 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;