(RESTORE2): Put asm explicitly into .text section.
authordrepper <drepper>
Sat, 7 Jul 2001 22:56:38 +0000 (22:56 +0000)
committerdrepper <drepper>
Sat, 7 Jul 2001 22:56:38 +0000 (22:56 +0000)
sysdeps/unix/sysv/linux/i386/sigaction.c

index fe0a192..773101f 100644 (file)
@@ -163,7 +163,8 @@ weak_alias (__libc_sigaction, sigaction)
 #define RESTORE2(name, syscall) \
 asm                                            \
   (                                            \
-   ".align 16\n"                               \
+   ".text\n"                                   \
+   "   .align 16\n"                            \
    "__" #name ":\n"                            \
    "   movl $" #syscall ", %eax\n"             \
    "   int  $0x80"                             \
@@ -179,7 +180,8 @@ RESTORE (restore_rt, __NR_rt_sigreturn)
 # define RESTORE2(name, syscall) \
 asm                                            \
   (                                            \
-   ".align 8\n"                                        \
+   ".text\n"                                   \
+   "   .align 8\n"                             \
    "__" #name ":\n"                            \
    "   popl %eax\n"                            \
    "   movl $" #syscall ", %eax\n"             \