فهرست منبع

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 20 سال پیش
والد
کامیت
0cc50b53fc

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

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

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

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

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

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

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

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

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

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

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

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

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

@@ -24,7 +24,7 @@
 
 
 .global __default_sa_restorer
 .global __default_sa_restorer
 .type __default_sa_restorer,%function
 .type __default_sa_restorer,%function
-.align 4
+.align 2
 __default_sa_restorer:
 __default_sa_restorer:
 	DO_CALL (sigreturn)
 	DO_CALL (sigreturn)
 
 
@@ -33,7 +33,7 @@ __default_sa_restorer:
 
 
 .global __default_rt_sa_restorer
 .global __default_rt_sa_restorer
 .type __default_rt_sa_restorer,%function
 .type __default_rt_sa_restorer,%function
-.align 4
+.align 2
 __default_rt_sa_restorer:
 __default_rt_sa_restorer:
 	DO_CALL (rt_sigreturn)
 	DO_CALL (rt_sigreturn)