aboutsummaryrefslogtreecommitdiff
path: root/gold/powerpc.cc
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-01-09 10:46:23 +1030
committerAlan Modra <amodra@gmail.com>2017-01-09 12:10:56 +1030
commit3254d32c4b47f17a7d609f25394fbfb2313f09ff (patch)
tree5aae63981561e308f4f6b1bf9afb14fc1ff9bfe4 /gold/powerpc.cc
parent4d74727a4a41e811950dcd0bed7bc6747a068886 (diff)
downloadgdb-3254d32c4b47f17a7d609f25394fbfb2313f09ff.zip
gdb-3254d32c4b47f17a7d609f25394fbfb2313f09ff.tar.gz
gdb-3254d32c4b47f17a7d609f25394fbfb2313f09ff.tar.bz2
[GOLD] Set sh_info of .rela.plt for powerpc
* powerpc.cc (Target_powerpc::make_plt_section): Point sh_info of ".rela.plt" at ".plt".
Diffstat (limited to 'gold/powerpc.cc')
-rw-r--r--gold/powerpc.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/powerpc.cc b/gold/powerpc.cc
index 4b5026f..6d6d0dd 100644
--- a/gold/powerpc.cc
+++ b/gold/powerpc.cc
@@ -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());
}
}