diff options
author | Alan Modra <amodra@gmail.com> | 2012-01-16 08:30:18 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-01-16 08:30:18 +0000 |
commit | 8a5dcf532efc4f76188250a159e52134687681b1 (patch) | |
tree | 3afbc69c11c1e9940c212ab48beb52a2bd05b55e /bfd/coff-i386.c | |
parent | bfcfb5c9a1098d0f6d0bb0cf3c7dd3be2964f57c (diff) | |
download | binutils-gdb-8a5dcf532efc4f76188250a159e52134687681b1.tar.gz |
PR ld/13491
* 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.
Diffstat (limited to 'bfd/coff-i386.c')
-rw-r--r-- | bfd/coff-i386.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/coff-i386.c b/bfd/coff-i386.c index 2f17a556505..adc343329b0 100644 --- a/bfd/coff-i386.c +++ b/bfd/coff-i386.c @@ -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 { |