diff options
Diffstat (limited to 'bfd/elfxx-ia64.c')
-rw-r--r-- | bfd/elfxx-ia64.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c index a7d72bf..9ae95d3 100644 --- a/bfd/elfxx-ia64.c +++ b/bfd/elfxx-ia64.c @@ -4340,7 +4340,8 @@ elfNN_ia64_relocate_section (output_bfd, info, input_bfd, input_section, case R_IA64_SECREL64LSB: /* Make output-section relative to section where the symbol is defined. PR 475 */ - value -= sym_sec->output_section->vma; + if (sym_sec) + value -= sym_sec->output_section->vma; r = elfNN_ia64_install_value (hit_addr, value, r_type); break; |