[GOLD] Set sh_info of .rela.plt for powerpc
authorAlan Modra <amodra@gmail.com>
Mon, 9 Jan 2017 00:16:23 +0000 (10:46 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 9 Jan 2017 01:40:56 +0000 (12:10 +1030)
* powerpc.cc (Target_powerpc::make_plt_section): Point sh_info of
".rela.plt" at ".plt".

gold/ChangeLog
gold/powerpc.cc

index b76fde713b35c391c57a589694ac2ab72a8cb11d..1159f9c6aa34b6270ab7bf1d2ca9eb3c63a047c9 100644 (file)
@@ -1,3 +1,8 @@
+2017-01-09  Alan Modra  <amodra@gmail.com>
+
+       * powerpc.cc (Target_powerpc::make_plt_section): Point sh_info of
+       ".rela.plt" at ".plt".
+
 2017-01-07  Alan Modra  <amodra@gmail.com>
 
        * powerpc.cc: Use shorter equivalent elfcpp typedef for
index 4b5026fcf758a01084bbcf10d4b99f5e0ab3b44d..6d6d0ddee0090481482a509d3e439be0ba46ef0d 100644 (file)
@@ -3421,6 +3421,9 @@ Target_powerpc<size, big_endian>::make_plt_section(Symbol_table* symtab,
                                       ? ORDER_SMALL_DATA
                                       : ORDER_SMALL_BSS),
                                      false);
+
+      Output_section* rela_plt_os = plt_rel->output_section();
+      rela_plt_os->set_info_section(this->plt_->output_section());
     }
 }