]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[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>
Tue, 21 Feb 2017 23:10:23 +0000 (09:40 +1030)
* powerpc.cc (Target_powerpc::make_plt_section): Point sh_info of
".rela.plt" at ".plt".

gold/ChangeLog
gold/powerpc.cc

index 853b783a4c8a4fdd15e0dc7af7450a3920bdca5b..b15e358975635e203449ad1a96815cc4420d87af 100644 (file)
@@ -1,6 +1,10 @@
 2017-02-22  Alan Modra  <amodra@gmail.com>
 
        Apply from master
+       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
        Reltype and reloc_size throughout.
index e317328ecf4aa1fc53113392637be9ed8b0ff610..8c3e5bbf559f6d9e5611b1ef892e4a2f70aac45c 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());
     }
 }