Skip to content
Snippets Groups Projects
Commit 406dba13 authored by Kai Tietz's avatar Kai Tietz
Browse files

2009-10-23 Kai Tietz <kai.tietz@onevision.com>

        * coff-x86_64.c (coff_amd64_rtype_to_howto): Subtract offset
        of R_AMD64_PCRLONG_<X> relocations from addend.
parent 244d5259
No related branches found
No related tags found
No related merge requests found
2009-10-23 Kai Tietz <kai.tietz@onevision.com>
* coff-x86_64.c (coff_amd64_rtype_to_howto): Subtract offset
of R_AMD64_PCRLONG_<X> relocations from addend.
2009-10-23 Alan Modra <amodra@bigpond.net.au> 2009-10-23 Alan Modra <amodra@bigpond.net.au>
* plugin.c: Produce empty object if not BFD_SUPPORTS_PLUGINS. * plugin.c: Produce empty object if not BFD_SUPPORTS_PLUGINS.
......
...@@ -550,16 +550,16 @@ coff_amd64_rtype_to_howto (bfd *abfd ATTRIBUTE_UNUSED, ...@@ -550,16 +550,16 @@ coff_amd64_rtype_to_howto (bfd *abfd ATTRIBUTE_UNUSED,
bfd_set_error (bfd_error_bad_value); bfd_set_error (bfd_error_bad_value);
return NULL; return NULL;
} }
if (rel->r_type >= R_AMD64_PCRLONG_1 && rel->r_type <= R_AMD64_PCRLONG_5)
{
rel->r_vaddr += (bfd_vma)(rel->r_type-R_AMD64_PCRLONG);
rel->r_type = R_AMD64_PCRLONG;
}
howto = howto_table + rel->r_type; howto = howto_table + rel->r_type;
#if defined(COFF_WITH_PE) #if defined(COFF_WITH_PE)
/* Cancel out code in _bfd_coff_generic_relocate_section. */ /* Cancel out code in _bfd_coff_generic_relocate_section. */
*addendp = 0; *addendp = 0;
if (rel->r_type >= R_AMD64_PCRLONG_1 && rel->r_type <= R_AMD64_PCRLONG_5)
{
*addendp -= (bfd_vma)(rel->r_type - R_AMD64_PCRLONG);
rel->r_type = R_AMD64_PCRLONG;
}
#endif #endif
if (howto->pc_relative) if (howto->pc_relative)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment