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.
This commit is contained in:
Alan Modra 2012-01-16 08:30:18 +00:00
parent bfcfb5c9a1
commit 8a5dcf532e
3 changed files with 13 additions and 5 deletions

View File

@ -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>

View 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
{

View 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
{