From eeb9d29da882153b1fa2b1e00178899bb95659b2 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 30 May 2003 04:47:47 +0000 Subject: In a number of places we erroneously used tests such as '#ifdef PIC' when we should instead have been testing for '#ifdef __PIC__'. This resulted in NON-PIC code getting mixed into the shared library. Oops!!! -Erik --- libc/sysdeps/linux/i386/clone.S | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libc/sysdeps/linux/i386/clone.S') diff --git a/libc/sysdeps/linux/i386/clone.S b/libc/sysdeps/linux/i386/clone.S index c52bb7fd8..93183d208 100644 --- a/libc/sysdeps/linux/i386/clone.S +++ b/libc/sysdeps/linux/i386/clone.S @@ -65,11 +65,11 @@ __clone: CLONE_ERROR_LABEL: negl %eax pushl %eax -#ifdef PIC - call L(here) -L(here): +#ifdef __PIC__ + call .Lhere +.Lhere: popl %ebx - addl $_GLOBAL_OFFSET_TABLE_+[.-L(here)], %ebx + addl $_GLOBAL_OFFSET_TABLE_+[.- .Lhere ], %ebx call __errno_location@PLT #else call __errno_location -- cgit v1.2.3