Replace 8-byte data alignment with LP_SIZE alignment
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 15 May 2012 17:17:30 +0000 (10:17 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 15 May 2012 17:17:30 +0000 (10:17 -0700)
ChangeLog
sysdeps/unix/sysv/linux/x86_64/sigaction.c

index c9db2b9..868c97b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
 
+       * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
+       8-byte data alignment with LP_SIZE alignment.
+
+2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
+
        * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
        into R10_LP.
 
index 89e02d5..5a3ad18 100644 (file)
@@ -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"                                                    \
    );