From: Alan Modra Date: Wed, 25 Nov 2015 03:08:43 +0000 (+1030) Subject: [GOLD] Align PowerPC64 GOT X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=751e4d66b4c6daaf04e6bccdb3f9ce4a0620babb;p=binutils-gdb.git [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 --git a/gold/ChangeLog b/gold/ChangeLog index 6f396bf86a6..a07226102b8 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2015-11-25 Alan Modra + + * powerpc.cc (Output_data_got_powerpc::Output_data_got_powerpc): Align + to 256 byte boundary. + 2015-11-19 Alan Modra * powerpc.cc (Target_powerpc::Scan::get_reference_flags): Correct diff --git a/gold/powerpc.cc b/gold/powerpc.cc index 5441c52adf0..39a0324e79c 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().