summaryrefslogtreecommitdiffstats
path: root/lib/libc/i386/sys
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-05-10 16:43:47 +0000
committerpeter <peter@FreeBSD.org>1996-05-10 16:43:47 +0000
commit02fead7e055f8da6555c29a488d8a0b2569cf17c (patch)
treedcc91a833ee8e9c7a14c8516ee67cd6001263442 /lib/libc/i386/sys
parente18782182041e3c1e4a504c753d97480e206140b (diff)
downloadFreeBSD-src-02fead7e055f8da6555c29a488d8a0b2569cf17c.zip
FreeBSD-src-02fead7e055f8da6555c29a488d8a0b2569cf17c.tar.gz
Fix a bogon in the pic + threadsafe version of cerror, it was missing
a PIC_EPILOGUE (leaving an extra long on the stack). Submitted by: John Polstra <jdp@polstra.com>
Diffstat (limited to 'lib/libc/i386/sys')
-rw-r--r--lib/libc/i386/sys/cerror.S8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/i386/sys/cerror.S b/lib/libc/i386/sys/cerror.S
index 926dcd9..632939b 100644
--- a/lib/libc/i386/sys/cerror.S
+++ b/lib/libc/i386/sys/cerror.S
@@ -33,12 +33,12 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: cerror.S,v 1.4 1996/01/22 00:00:57 julian Exp $
+ * $Id: cerror.S,v 1.5 1996/05/05 07:56:11 peter Exp $
*/
#if defined(SYSLIBC_RCS) && !defined(lint)
.text
- .asciz "$Id: cerror.S,v 1.4 1996/01/22 00:00:57 julian Exp $"
+ .asciz "$Id: cerror.S,v 1.5 1996/05/05 07:56:11 peter Exp $"
#endif /* SYSLIBC_RCS and not lint */
#include "SYS.h"
@@ -56,10 +56,12 @@ HIDENAME(cerror):
#ifdef PIC
/* The caller must execute the PIC prologue before jumping to cerror. */
call PIC_PLT(CNAME(__error))
+ popl %ecx
+ PIC_EPILOGUE
#else
call CNAME(__error)
-#endif
popl %ecx
+#endif
movl %ecx,(%eax)
movl $-1,%eax
movl $-1,%edx
OpenPOWER on IntegriCloud