This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

[PATCH] Fix i386-*-linux sigaction


Hi!

While building glibc with -gdwarf-2 I've noticed that these two asms lack
explicit section specification (and as gcc does not say which section it
will be in at that time, both gcc-2.96-RH and gcc 3.0 would put __restore_rt
and __restore into .debug_line section, which is probably not what we want).

2001-07-06  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/unix/sysv/linux/i386/sigaction.c (RESTORE2): Put asm
	explicitely into .text section.

--- libc/sysdeps/unix/sysv/linux/i386/sigaction.c.jj	Mon Jun 25 10:35:00 2001
+++ libc/sysdeps/unix/sysv/linux/i386/sigaction.c	Fri Jul  6 11:42:04 2001
@@ -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"		\

	Jakub


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