+2016-07-22 Cupertino Miranda <cmiranda@synopsys.com>
+
+ * arc-got.h (relocate_fix_got_relocs_for_got_info): Handle the
+ case where there's no elf_link_hash_entry while processing
+ GOT_NORMAL got entries.
+
2016-07-21 H.J. Lu <hongjiu.lu@intel.com>
* version.m4 (BFD_VERSION): Set to 2.27.51.
= reloc_data->sym_section->output_section->vma
+ reloc_data->sym_section->output_offset;
- if (h->root.type != bfd_link_hash_undefweak)
+ if (h != NULL
+ && h->root.type == bfd_link_hash_undefweak)
+ ARC_DEBUG ("arc_info: PATCHED: NOT_PATCHED "
+ "@ %#08lx for sym %s in got offset %#lx "
+ "(is undefweak)\n",
+ (long) (htab->sgot->output_section->vma
+ + htab->sgot->output_offset
+ + entry->offset),
+ symbol_name,
+ (long) entry->offset);
+ else
{
bfd_put_32 (output_bfd,
reloc_data->sym_value + sec_vma,
htab->sgot->contents + entry->offset);
-
ARC_DEBUG ("arc_info: PATCHED: %#08lx "
"@ %#08lx for sym %s in got offset %#lx\n",
(long) (reloc_data->sym_value + sec_vma),
symbol_name,
(long) entry->offset);
}
- else
- {
- ARC_DEBUG ("arc_info: PATCHED: NOT_PATCHED "
- "@ %#08lx for sym %s in got offset %#lx "
- "(is undefweak)\n",
- (long) (htab->sgot->output_section->vma
- + htab->sgot->output_offset
- + entry->offset),
- symbol_name,
- (long) entry->offset);
- }
}
break;
default:
+2016-07-22 Cupertino Miranda <cmiranda@synopsys.com>
+
+ * testsuite/ld-arc/got-01.d: New file.
+ * testsuite/ld-arc/got-01.s: New file.
+
2016-07-21 H.J. Lu <hongjiu.lu@intel.com>
* configure: Regenerated.