[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.
This commit is contained in:
Alan Modra 2015-11-25 13:38:43 +10:30
parent 5e7e0604cf
commit 751e4d66b4
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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

View file

@ -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().