Index: bfd/coff-x86_64.c |
diff --git a/bfd/coff-x86_64.c b/bfd/coff-x86_64.c |
index d8a8a2e6c604dcb75d43e05130646188f2ab8844..4f00b78d413d3a3bd8c37c51fb71392a10eff10b 100644 |
--- a/bfd/coff-x86_64.c |
+++ b/bfd/coff-x86_64.c |
@@ -619,7 +619,8 @@ coff_amd64_rtype_to_howto (bfd *abfd ATTRIBUTE_UNUSED, |
{ |
bfd_vma osect_vma; |
- if (h && (h->type == bfd_link_hash_defined || h->type == bfd_link_hash_defweak)) |
+ if (h && (h->root.type == bfd_link_hash_defined |
+ || h->root.type == bfd_link_hash_defweak)) |
osect_vma = h->root.u.def.section->output_section->vma; |
else |
{ |