From: Cary Coutant Date: Mon, 28 Apr 2008 23:09:21 +0000 (+0000) Subject: * i386.cc (Relocate::relocate): Fix typos for R_386_PC16 and X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d09e9154cf11bb55dd6a758e86a264fa048e5046;p=binutils-gdb.git * i386.cc (Relocate::relocate): Fix typos for R_386_PC16 and R_386_PC8 relocations. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index b73da9b4bf1..9f056436e5f 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2008-04-28 Cary Coutant + + * i386.cc (Relocate::relocate): Fix typos for R_386_PC16 and + R_386_PC8 relocations. + 2008-04-23 Ian Lance Taylor * object.cc (Sized_relobj::include_section_group): Check for diff --git a/gold/i386.cc b/gold/i386.cc index dcd4c03ef9c..6fb096ea9cd 100644 --- a/gold/i386.cc +++ b/gold/i386.cc @@ -1663,7 +1663,7 @@ Target_i386::Relocate::relocate(const Relocate_info<32, false>* relinfo, if (gsym != NULL && gsym->type() == elfcpp::STT_FUNC) ref_flags |= Symbol::FUNCTION_CALL; if (should_apply_static_reloc(gsym, ref_flags, false)) - Relocate_functions<32, false>::pcrel32(view, object, psymval, address); + Relocate_functions<32, false>::pcrel16(view, object, psymval, address); } break; @@ -1678,7 +1678,7 @@ Target_i386::Relocate::relocate(const Relocate_info<32, false>* relinfo, if (gsym != NULL && gsym->type() == elfcpp::STT_FUNC) ref_flags |= Symbol::FUNCTION_CALL; if (should_apply_static_reloc(gsym, ref_flags, false)) - Relocate_functions<32, false>::pcrel32(view, object, psymval, address); + Relocate_functions<32, false>::pcrel8(view, object, psymval, address); } break;