aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-01-09 10:46:23 +1030
committerAlan Modra <amodra@gmail.com>2017-02-22 09:40:23 +1030
commit5e03947038073e1bb0e3c30403bf884db879a069 (patch)
treea4e8f7c0d2df7739ce7982437f060457a56e8af8
parentcb4630af68d065b99c9ce9d22d27281900089774 (diff)
downloadgdb-5e03947038073e1bb0e3c30403bf884db879a069.zip
gdb-5e03947038073e1bb0e3c30403bf884db879a069.tar.gz
gdb-5e03947038073e1bb0e3c30403bf884db879a069.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".
-rw-r--r--gold/ChangeLog4
-rw-r--r--gold/powerpc.cc3
2 files changed, 7 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 853b783..b15e358 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -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.
diff --git a/gold/powerpc.cc b/gold/powerpc.cc
index e317328..8c3e5bb 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());
}
}