This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[glibc/arm/ilp32] aarch64: Fix jmp_buf-macros.h for ILP32.


https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a41071ca50837f7e3f64becd2b69a909b74a62b1

commit a41071ca50837f7e3f64becd2b69a909b74a62b1
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date:   Fri Nov 10 18:59:31 2017 +0000

    aarch64: Fix jmp_buf-macros.h for ILP32.
    
    The offset is different on ILP32 because __saved_mask is 4 byte aligned.
    
    2017-11-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
    
    	* sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h (SAVED_MASK_OFFSET):
    	Fix for ILP32.

Diff:
---
 sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h b/sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h
index 608a7ad..d0ced87 100644
--- a/sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h
+++ b/sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h
@@ -3,4 +3,8 @@
 #define JMP_BUF_ALIGN 8
 #define SIGJMP_BUF_ALIGN 8
 #define MASK_WAS_SAVED_OFFSET 176
-#define SAVED_MASK_OFFSET 184
+#ifdef __ILP32__
+# define SAVED_MASK_OFFSET 180
+#else
+# define SAVED_MASK_OFFSET 184
+#endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]