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_26-branch] [GOLD] Align PowerPC64 GOT


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

commit 5838675d54033a265e43e3cb530004889ffd6c2a
Author: Alan Modra <amodra@gmail.com>
Date:   Wed Nov 25 13:38:43 2015 +1030

    [GOLD] Align PowerPC64 GOT
    
    As done in a27e685f for bfd ld.
    
    	* powerpc.cc (Output_data_got_powerpc::Output_data_got_powerpc): Align
    	to 256 byte boundary.

Diff:
---
 gold/ChangeLog  | 4 ++++
 gold/powerpc.cc | 5 ++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/gold/ChangeLog b/gold/ChangeLog
index 3604550..628d6d0 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,6 +1,10 @@
 2015-12-10  Alan Modra  <amodra@gmail.com>
 
 	Apply from master.
+	2015-11-25  Alan Modra  <amodra@gmail.com>
+	* powerpc.cc (Output_data_got_powerpc::Output_data_got_powerpc): Align
+	to 256 byte boundary.
+
 	2015-11-19  Alan Modra  <amodra@gmail.com>
 	* powerpc.cc (Target_powerpc::Scan::get_reference_flags): Correct
 	GOT16 and TOC16 relocs to RELATIVE_REF.
diff --git a/gold/powerpc.cc b/gold/powerpc.cc
index 5441c52..39a0324 100644
--- a/gold/powerpc.cc
+++ b/gold/powerpc.cc
@@ -2192,7 +2192,10 @@ public:
       symtab_(symtab), layout_(layout),
       header_ent_cnt_(size == 32 ? 3 : 1),
       header_index_(size == 32 ? 0x2000 : 0)
-  { }
+  {
+    if (size == 64)
+      this->set_addralign(256);
+  }
 
   // Override all the Output_data_got methods we use so as to first call
   // reserve_ent().


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