]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[GOLD] Align PowerPC64 GOT
authorAlan Modra <amodra@gmail.com>
Wed, 25 Nov 2015 03:08:43 +0000 (13:38 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 10 Dec 2015 13:48:48 +0000 (00:18 +1030)
As done in a27e685f for bfd ld.

* powerpc.cc (Output_data_got_powerpc::Output_data_got_powerpc): Align
to 256 byte boundary.

gold/ChangeLog
gold/powerpc.cc

index 36045501b9ed32bd31f43ef1464f5196f5359260..628d6d0fcba622dc5120a46e1486f36f957229b2 100644 (file)
@@ -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.
index 5441c52adf064f4cb9a030a859ee991b6440f63b..39a0324e79c75bd393acd007db48efb704f34645 100644 (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().