aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-01-16 08:30:18 +0000
committerAlan Modra <amodra@gmail.com>2012-01-16 08:30:18 +0000
commit8a5dcf532efc4f76188250a159e52134687681b1 (patch)
tree3afbc69c11c1e9940c212ab48beb52a2bd05b55e /bfd
parentbfcfb5c9a1098d0f6d0bb0cf3c7dd3be2964f57c (diff)
downloadgdb-8a5dcf532efc4f76188250a159e52134687681b1.zip
gdb-8a5dcf532efc4f76188250a159e52134687681b1.tar.gz
gdb-8a5dcf532efc4f76188250a159e52134687681b1.tar.bz2
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')
-rw-r--r--bfd/ChangeLog11
-rw-r--r--bfd/coff-i386.c4
-rw-r--r--bfd/coff-x86_64.c3
3 files changed, 13 insertions, 5 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 7b56967..15e2171 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,7 +1,14 @@
+2012-01-16 Daniel Green <venix1@gmail.com>
+
+ 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.
+
2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
- * mach-o.c (bfd_mach_o_build_dysymtab_command): Handle absolute
- indirect symbols.
+ * mach-o.c (bfd_mach_o_build_dysymtab_command): Handle absolute
+ indirect symbols.
2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
diff --git a/bfd/coff-i386.c b/bfd/coff-i386.c
index 2f17a55..adc3433 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
{
diff --git a/bfd/coff-x86_64.c b/bfd/coff-x86_64.c
index d8a8a2e..4f00b78 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
{