This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
PATCH: Replace 8-byte data alignment with LP_SIZE alignment.
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 15 May 2012 07:39:13 -0700
- Subject: PATCH: Replace 8-byte data alignment with LP_SIZE alignment.
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
This patch replaces 8-byte data alignment with LP_SIZE alignment.
Tested on Linux/x86-64 and Linux/x32. OK to install?
Thanks.
H.J.
----
* sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
8-byte data alignment with LP_SIZE alignment.
diff --git a/sysdeps/unix/sysv/linux/x86_64/sigaction.c b/sysdeps/unix/sysv/linux/x86_64/sigaction.c
index 89e02d5..5a3ad18 100644
--- a/sysdeps/unix/sysv/linux/x86_64/sigaction.c
+++ b/sysdeps/unix/sysv/linux/x86_64/sigaction.c
@@ -146,7 +146,7 @@ asm \
".LSTARTAUGMNT_" #name ":\n" \
" .byte 0x1b\n" /* DW_EH_PE_pcrel|DW_EH_PE_sdata4. */ \
".LENDAUGMNT_" #name ":\n" \
- " .align 8\n" \
+ " .align " LP_SIZE "\n" \
".LENDCIE_" #name ":\n" \
" .long .LENDFDE_" #name "-.LSTARTFDE_" #name "\n" /* FDE len */ \
".LSTARTFDE_" #name ":\n" \
@@ -177,7 +177,7 @@ asm \
/* do_expr (49 |* rflags *|, oEFL) */ \
/* `cs'/`ds'/`fs' are unaligned and a different size. */ \
/* gas: Error: register save offset not a multiple of 8 */ \
- " .align 8\n" \
+ " .align " LP_SIZE "\n" \
".LENDFDE_" #name ":\n" \
" .previous\n" \
);
--
1.7.6.5