[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>
Wed, 25 Nov 2015 04:36:12 +0000 (15:06 +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 6f396bf86a6436d6522edd0ec70c42a581be6d76..a07226102b88996070a658e049ccc335e11efa24 100644 (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
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().
This page took 0.034331 seconds and 4 git commands to generate.