This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb/binutils-2_28-branch] [GOLD] Set sh_info of .rela.plt for powerpc


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=61716c6699ac612f09ea952edac43582c17eae9b

commit 61716c6699ac612f09ea952edac43582c17eae9b
Author: Alan Modra <amodra@gmail.com>
Date:   Mon Jan 9 10:46:23 2017 +1030

    [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:
---
 gold/ChangeLog  | 5 +++++
 gold/powerpc.cc | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/gold/ChangeLog b/gold/ChangeLog
index b76fde7..1159f9c 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -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
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());
     }
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]