summaryrefslogtreecommitdiff
path: root/sysdeps/i386/setjmp.S
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-03-18 18:32:47 +0000
committerRoland McGrath <roland@gnu.org>1996-03-18 18:32:47 +0000
commite384537164e04d46fe1749899715abd72d33c54e (patch)
treef906d3c3ecf09b014c1cd395683d7796e40b4921 /sysdeps/i386/setjmp.S
parent9b431e31e15b4620c862208c1079fdace62313aa (diff)
Mon Mar 18 13:20:46 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>cvs/libc-960319
* elf/Makefile (rtld-link): New canned sequence. (ld.so, ld-linux.so.1): Use it. Pass -soname option. * sysdeps/i386/setjmp.S (__setjmp): Define compatibility entry point. Sun Mar 17 23:15:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * sysdeps/unix/sysv/linux/tcgetpgrp.c, sysdeps/unix/sysv/linux/tcsetpgrp.c: New files.
Diffstat (limited to 'sysdeps/i386/setjmp.S')
-rw-r--r--sysdeps/i386/setjmp.S8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysdeps/i386/setjmp.S b/sysdeps/i386/setjmp.S
index ccb7147606..498a925b00 100644
--- a/sysdeps/i386/setjmp.S
+++ b/sysdeps/i386/setjmp.S
@@ -1,5 +1,5 @@
/* setjmp for i386.
-Copyright (C) 1995 Free Software Foundation, Inc.
+Copyright (C) 1995, 1996 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -21,6 +21,12 @@ Cambridge, MA 02139, USA. */
#define _ASM
#include <jmp_buf.h>
+ /* Binary compatibility entry point. */
+ENTRY (__setjmp)
+ popl %eax /* Pop return address. */
+ pushl $0 /* Push zero argument. */
+ pushl %eax /* Push back return address. */
+
ENTRY (__sigsetjmp)
movl 4(%esp), %eax /* User's jmp_buf in %eax. */
/* Save registers. */