ARM: workaround binutils bug #12931 (code sections alignment)
authorSiarhei Siamashka <siarhei.siamashka@nokia.com>
Fri, 22 Jul 2011 21:27:34 +0000 (00:27 +0300)
committerSiarhei Siamashka <siarhei.siamashka@nokia.com>
Wed, 27 Jul 2011 14:07:19 +0000 (17:07 +0300)
More details in binutils bugtracker:
  http://sourceware.org/bugzilla/show_bug.cgi?id=12931

The problem was encountered in the wild by Mozilla:
  https://bugzilla.mozilla.org/show_bug.cgi?id=672787

pixman/pixman-arm-neon-asm-bilinear.S
pixman/pixman-arm-neon-asm.S
pixman/pixman-arm-simd-asm.S

index 9a4a1ff..3c7fe0f 100644 (file)
@@ -66,6 +66,7 @@
 .eabi_attribute 12, 0
 .arm
 .altmacro
+.p2align 2
 
 #include "pixman-arm-neon-asm.h"
 
index 7cddf7e..e32bfa1 100644 (file)
@@ -47,6 +47,7 @@
     .eabi_attribute 12, 0 /* suppress Tag_Advanced_SIMD_arch */
     .arm
     .altmacro
+    .p2align 2
 
 #include "pixman-arm-neon-asm.h"
 
index 858c690..8fe1b50 100644 (file)
@@ -35,6 +35,7 @@
        .object_arch armv4
        .arm
        .altmacro
+       .p2align 2
 
 /* Supplementary macro for setting function attributes */
 .macro pixman_asm_function fname