OSDN Git Service

PR ld/13491
authoramodra <amodra>
Mon, 16 Jan 2012 08:30:18 +0000 (08:30 +0000)
committeramodra <amodra>
Mon, 16 Jan 2012 08:30:18 +0000 (08:30 +0000)
* coff-i386.c (coff_i386_rtype_to_howto <R_SECREL32>): Test
h->root.type not h->type.
* coff-x86_64.c (coff_amd64_rtype_to_howto <R_AMD64_SECREL>): Likewise.

bfd/coff-i386.c
bfd/coff-x86_64.c

index 2f17a55..adc3433 100644 (file)
@@ -528,8 +528,8 @@ coff_i386_rtype_to_howto (abfd, sec, rel, h, sym, addendp)
     {
       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
        {
index d8a8a2e..4f00b78 100644 (file)
@@ -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
        {