[GOLD] PowerPC TOC16 and GOT16 relocs are relative
authorAlan Modra <amodra@gmail.com>
Thu, 19 Nov 2015 06:29:36 +0000 (16:59 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 19 Nov 2015 06:31:04 +0000 (17:01 +1030)
* powerpc.cc (Target_powerpc::Scan::get_reference_flags): Correct
GOT16 and TOC16 relocs to RELATIVE_REF.

gold/ChangeLog
gold/powerpc.cc

index b1a022c7218863a073e728e18084e47a0a48f265..6f396bf86a6436d6522edd0ec70c42a581be6d76 100644 (file)
@@ -1,3 +1,8 @@
+2015-11-19  Alan Modra  <amodra@gmail.com>
+
+       * powerpc.cc (Target_powerpc::Scan::get_reference_flags): Correct
+       GOT16 and TOC16 relocs to RELATIVE_REF.
+
 2015-11-14  Cary Coutant  <ccoutant@gmail.com>
 
        PR gold/19244
index 3a013ef97527375c05683098f96e7fa9502e9cce..5441c52adf064f4cb9a030a859ee991b6440f63b 100644 (file)
@@ -5326,8 +5326,7 @@ Target_powerpc<size, big_endian>::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: