This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[patch] add missing check for SHARED in linux/i386/sysdep.h
- From: Mike Frysinger <vapier at gentoo dot org>
- To: libc-alpha at sourceware dot org
- Date: Sat, 11 Mar 2006 05:55:31 -0500
- Subject: [patch] add missing check for SHARED in linux/i386/sysdep.h
- Geoman: IS A RETARD
forwarding an old patch from Gentoo ... the code in sysdep.h has this logic:
#define RESTOREARGS_0
#ifdef __PIC__
# if defined I386_USE_SYSENTER && defined SHARED
...
however, the section just above it lacks the defined SHARED part:
#define LOADARGS_0
#ifdef __PIC__
# if defined I386_USE_SYSENTER
-mike
2006-03-11 Scott Taylor <swtaylor@gentoo.org>
* sysdeps/unix/sysv/linux/i386/sysdep.h: Add missing SHARED check.
--- sysdeps/unix/sysv/linux/i386/sysdep.h
+++ sysdeps/unix/sysv/linux/i386/sysdep.h
@@ -447,7 +447,7 @@ asm (".L__X'%ebx = 1\n\t"
#define LOADARGS_0
#ifdef __PIC__
-# if defined I386_USE_SYSENTER
+# if defined I386_USE_SYSENTER && defined SHARED
# define LOADARGS_1 \
"bpushl .L__X'%k3, %k3\n\t"
# define LOADARGS_5 \