From: Alan Modra Date: Thu, 19 Nov 2015 06:29:36 +0000 (+1030) Subject: [GOLD] PowerPC TOC16 and GOT16 relocs are relative X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=32d849b35dead5af58e47bc20c04cf4f5c8625ef;p=binutils-gdb.git [GOLD] PowerPC TOC16 and GOT16 relocs are relative * powerpc.cc (Target_powerpc::Scan::get_reference_flags): Correct GOT16 and TOC16 relocs to RELATIVE_REF. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index b1a022c7218..6f396bf86a6 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2015-11-19 Alan Modra + + * powerpc.cc (Target_powerpc::Scan::get_reference_flags): Correct + GOT16 and TOC16 relocs to RELATIVE_REF. + 2015-11-14 Cary Coutant PR gold/19244 diff --git a/gold/powerpc.cc b/gold/powerpc.cc index 3a013ef9752..5441c52adf0 100644 --- a/gold/powerpc.cc +++ b/gold/powerpc.cc @@ -5326,8 +5326,7 @@ Target_powerpc::Scan::get_reference_flags( case elfcpp::R_PPC64_TOC16_HA: case elfcpp::R_PPC64_TOC16_DS: case elfcpp::R_PPC64_TOC16_LO_DS: - // Absolute in GOT. - ref = Symbol::ABSOLUTE_REF; + ref = Symbol::RELATIVE_REF; break; case elfcpp::R_POWERPC_GOT_TPREL16: