Ver código fonte

John Bowler writes in Bug 385:
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

Mike Frysinger 19 anos atrás
pai
commit
0cc50b53fc

+ 1 - 1
libc/sysdeps/linux/arm/__longjmp.S

@@ -25,7 +25,7 @@
 
 .global __longjmp
 .type __longjmp,%function
-.align 4
+.align 2
 __longjmp:
 	mov	ip, r0		/* save jmp_buf pointer */
 	

+ 1 - 1
libc/sysdeps/linux/arm/bsd-_setjmp.S

@@ -27,7 +27,7 @@
 
 .global _setjmp
 .type _setjmp,%function
-.align 4
+.align 2
 _setjmp:
 	mov	r1, #0
 #ifdef __PIC__

+ 1 - 1
libc/sysdeps/linux/arm/bsd-setjmp.S

@@ -27,7 +27,7 @@
 
 .global setjmp
 .type setjmp,%function
-.align 4
+.align 2
 setjmp:
 	mov	r1, #1
 #ifdef __PIC__

+ 1 - 1
libc/sysdeps/linux/arm/clone.S

@@ -31,7 +31,7 @@
 .text
 .global clone
 .type clone,%function
-.align 4
+.align 2
 clone:
 	@ sanity check args
 	cmp	r0, #0

+ 1 - 1
libc/sysdeps/linux/arm/mmap64.S

@@ -27,7 +27,7 @@
 .text
 .global mmap64
 .type mmap64,%function
-.align 4
+.align 2
 mmap64:
 
 #ifdef __ARM_EABI__

+ 1 - 1
libc/sysdeps/linux/arm/setjmp.S

@@ -24,7 +24,7 @@
 
 .global __sigsetjmp
 .type __sigsetjmp,%function
-.align 4
+.align 2
 __sigsetjmp:
 	mov	ip, r0
 

+ 2 - 2
libc/sysdeps/linux/arm/sigrestorer.S

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