OSDN Git Service

John Bowler writes in Bug 385:
authorMike Frysinger <vapier@gentoo.org>
Tue, 31 Jan 2006 01:50:28 +0000 (01:50 -0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 31 Jan 2006 01:50:28 +0000 (01:50 -0000)
The patch fixes up the .align directives to '2' (i.e. a multiple
of 4) not '4' (a multiple of 16 - apparently an error since it seems
to be unnecessary, there is no advantage here in cache line alignment).

this is an arm "feature" ... the value given to .align is not in bytes:
.align 4 in arm means .align 2 ^ 4

libc/sysdeps/linux/arm/__longjmp.S
libc/sysdeps/linux/arm/bsd-_setjmp.S
libc/sysdeps/linux/arm/bsd-setjmp.S
libc/sysdeps/linux/arm/clone.S
libc/sysdeps/linux/arm/mmap64.S
libc/sysdeps/linux/arm/setjmp.S
libc/sysdeps/linux/arm/sigrestorer.S

index b73474a..a21d26a 100644 (file)
@@ -25,7 +25,7 @@
 
 .global __longjmp
 .type __longjmp,%function
-.align 4
+.align 2
 __longjmp:
        mov     ip, r0          /* save jmp_buf pointer */
        
index 3f3a986..4e36143 100644 (file)
@@ -27,7 +27,7 @@
 
 .global _setjmp
 .type _setjmp,%function
-.align 4
+.align 2
 _setjmp:
        mov     r1, #0
 #ifdef __PIC__
index 3e5ff59..e803d15 100644 (file)
@@ -27,7 +27,7 @@
 
 .global setjmp
 .type setjmp,%function
-.align 4
+.align 2
 setjmp:
        mov     r1, #1
 #ifdef __PIC__
index 98b1296..66848e5 100644 (file)
@@ -31,7 +31,7 @@
 .text
 .global clone
 .type clone,%function
-.align 4
+.align 2
 clone:
        @ sanity check args
        cmp     r0, #0
index d0be038..847157b 100644 (file)
@@ -27,7 +27,7 @@
 .text
 .global mmap64
 .type mmap64,%function
-.align 4
+.align 2
 mmap64:
 
 #ifdef __ARM_EABI__
index 4ee22fc..dea6f56 100644 (file)
@@ -24,7 +24,7 @@
 
 .global __sigsetjmp
 .type __sigsetjmp,%function
-.align 4
+.align 2
 __sigsetjmp:
        mov     ip, r0
 
index cf77c01..bc175de 100644 (file)
@@ -24,7 +24,7 @@
 
 .global __default_sa_restorer
 .type __default_sa_restorer,%function
-.align 4
+.align 2
 __default_sa_restorer:
        DO_CALL (sigreturn)
 
@@ -33,7 +33,7 @@ __default_sa_restorer:
 
 .global __default_rt_sa_restorer
 .type __default_rt_sa_restorer,%function
-.align 4
+.align 2
 __default_rt_sa_restorer:
        DO_CALL (rt_sigreturn)