This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[GOLD] Align PowerPC64 GOT
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Wed, 25 Nov 2015 15:19:05 +1030
- Subject: [GOLD] Align PowerPC64 GOT
- Authentication-results: sourceware.org; auth=none
As done in a27e685f for bfd ld. Committed.
* powerpc.cc (Output_data_got_powerpc::Output_data_got_powerpc): Align
to 256 byte boundary.
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().
--
Alan Modra
Australia Development Lab, IBM