From: Alan Modra Date: Mon, 9 Jan 2017 00:16:23 +0000 (+1030) Subject: [GOLD] Set sh_info of .rela.plt for powerpc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3254d32c4b47f17a7d609f25394fbfb2313f09ff;p=binutils-gdb.git [GOLD] Set sh_info of .rela.plt for powerpc * powerpc.cc (Target_powerpc::make_plt_section): Point sh_info of ".rela.plt" at ".plt". --- diff --git a/gold/ChangeLog b/gold/ChangeLog index b76fde713b3..1159f9c6aa3 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2017-01-09 Alan Modra + + * powerpc.cc (Target_powerpc::make_plt_section): Point sh_info of + ".rela.plt" at ".plt". + 2017-01-07 Alan Modra * powerpc.cc: Use shorter equivalent elfcpp typedef for diff --git a/gold/powerpc.cc b/gold/powerpc.cc index 4b5026fcf75..6d6d0ddee00 100644 --- a/gold/powerpc.cc +++ b/gold/powerpc.cc @@ -3421,6 +3421,9 @@ Target_powerpc::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()); } }