Use PIC_PLT for error returns.
Correct operand order in accessing `minbrk' and `curbrk'.
This commit is contained in:
parent
417e7a6fff
commit
f3f7594fc9
|
@ -34,12 +34,12 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)brk.s 5.2 (Berkeley) 12/17/90
|
||||
* $Id: brk.S,v 1.2 1993/10/21 02:19:26 jtc Exp $
|
||||
* $Id: brk.S,v 1.3 1993/12/06 23:28:08 pk Exp $
|
||||
*/
|
||||
|
||||
#if defined(SYSLIBC_SCCS) && !defined(lint)
|
||||
.text
|
||||
.asciz "$Id: brk.S,v 1.2 1993/10/21 02:19:26 jtc Exp $"
|
||||
.asciz "$Id: brk.S,v 1.3 1993/12/06 23:28:08 pk Exp $"
|
||||
#endif /* SYSLIBC_SCCS and not lint */
|
||||
|
||||
#include "SYS.h"
|
||||
|
@ -55,8 +55,8 @@ ENTRY(brk)
|
|||
#ifdef PIC
|
||||
movl 4(%esp),%eax
|
||||
PIC_PROLOGUE
|
||||
movl %edx,PIC_GOT(curbrk) # set up GOT addressing
|
||||
movl %ecx,PIC_GOT(minbrk) #
|
||||
movl PIC_GOT(curbrk),%edx # set up GOT addressing
|
||||
movl PIC_GOT(minbrk),%ecx #
|
||||
cmpl %eax,(%ecx)
|
||||
PIC_EPILOGUE
|
||||
jl ok
|
||||
|
|
|
@ -34,12 +34,12 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)exect.s 5.1 (Berkeley) 4/23/90
|
||||
* $Id: exect.S,v 1.2 1993/10/21 02:19:28 jtc Exp $
|
||||
* $Id: exect.S,v 1.3 1993/12/06 23:28:09 pk Exp $
|
||||
*/
|
||||
|
||||
#if defined(SYSLIBC_SCCS) && !defined(lint)
|
||||
.text
|
||||
.asciz "$Id: exect.S,v 1.2 1993/10/21 02:19:28 jtc Exp $"
|
||||
.asciz "$Id: exect.S,v 1.3 1993/12/06 23:28:09 pk Exp $"
|
||||
#endif /* SYSLIBC_SCCS and not lint */
|
||||
|
||||
#include "SYS.h"
|
||||
|
@ -53,4 +53,4 @@ ENTRY(exect)
|
|||
pushl %edx
|
||||
popf
|
||||
LCALL(7,0)
|
||||
jmp cerror /* exect(file, argv, env); */
|
||||
jmp PIC_PLT(cerror) /* exect(file, argv, env); */
|
||||
|
|
|
@ -34,12 +34,12 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)ptrace.s 5.1 (Berkeley) 4/23/90
|
||||
* $Id: ptrace.S,v 1.2 1993/10/21 02:19:33 jtc Exp $
|
||||
* $Id: ptrace.S,v 1.3 1993/12/06 23:28:10 pk Exp $
|
||||
*/
|
||||
|
||||
#if defined(SYSLIBC_SCCS) && !defined(lint)
|
||||
.text
|
||||
.asciz "$Id: ptrace.S,v 1.2 1993/10/21 02:19:33 jtc Exp $"
|
||||
.asciz "$Id: ptrace.S,v 1.3 1993/12/06 23:28:10 pk Exp $"
|
||||
#endif /* SYSLIBC_SCCS and not lint */
|
||||
|
||||
#include "SYS.h"
|
||||
|
@ -59,4 +59,4 @@ ENTRY(ptrace)
|
|||
jb err
|
||||
ret
|
||||
err:
|
||||
jmp cerror
|
||||
jmp PIC_PLT(cerror)
|
||||
|
|
|
@ -34,18 +34,18 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)sigprocmask.s 5.2 (Berkeley) 12/17/90
|
||||
* $Id: sigprocmask.S,v 1.2 1993/10/21 02:19:39 jtc Exp $
|
||||
* $Id: sigprocmask.S,v 1.3 1993/12/06 23:28:10 pk Exp $
|
||||
*/
|
||||
|
||||
#if defined(SYSLIBC_SCCS) && !defined(lint)
|
||||
.text
|
||||
.asciz "$Id: sigprocmask.S,v 1.2 1993/10/21 02:19:39 jtc Exp $"
|
||||
.asciz "$Id: sigprocmask.S,v 1.3 1993/12/06 23:28:10 pk Exp $"
|
||||
#endif /* SYSLIBC_SCCS and not lint */
|
||||
|
||||
#include "SYS.h"
|
||||
|
||||
err:
|
||||
jmp cerror
|
||||
jmp PIC_PLT(cerror)
|
||||
|
||||
ENTRY(sigprocmask)
|
||||
movl 8(%esp),%ecx # fetch new sigset pointer
|
||||
|
|
|
@ -34,18 +34,18 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)sigsuspend.s 5.2 (Berkeley) 12/17/90
|
||||
* $Id: sigsuspend.S,v 1.2 1993/10/21 02:19:41 jtc Exp $
|
||||
* $Id: sigsuspend.S,v 1.3 1993/12/06 23:28:11 pk Exp $
|
||||
*/
|
||||
|
||||
#if defined(SYSLIBC_SCCS) && !defined(lint)
|
||||
.text
|
||||
.asciz "$Id: sigsuspend.S,v 1.2 1993/10/21 02:19:41 jtc Exp $"
|
||||
.asciz "$Id: sigsuspend.S,v 1.3 1993/12/06 23:28:11 pk Exp $"
|
||||
#endif /* SYSLIBC_SCCS and not lint */
|
||||
|
||||
#include "SYS.h"
|
||||
|
||||
err:
|
||||
jmp cerror
|
||||
jmp PIC_PLT(cerror)
|
||||
|
||||
ENTRY(sigsuspend)
|
||||
movl 4(%esp),%eax # fetch mask arg
|
||||
|
|
|
@ -34,12 +34,12 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)syscall.s 5.1 (Berkeley) 4/23/90
|
||||
* $Id: syscall.S,v 1.2 1993/10/21 02:19:43 jtc Exp $
|
||||
* $Id: syscall.S,v 1.3 1993/12/06 23:28:12 pk Exp $
|
||||
*/
|
||||
|
||||
#if defined(SYSLIBC_SCCS) && !defined(lint)
|
||||
.text
|
||||
.asciz "$Id: syscall.S,v 1.2 1993/10/21 02:19:43 jtc Exp $"
|
||||
.asciz "$Id: syscall.S,v 1.3 1993/12/06 23:28:12 pk Exp $"
|
||||
#endif /* SYSLIBC_SCCS and not lint */
|
||||
|
||||
#include "SYS.h"
|
||||
|
@ -53,4 +53,4 @@ ENTRY(syscall)
|
|||
jb 1f
|
||||
ret
|
||||
1:
|
||||
jmp cerror
|
||||
jmp PIC_PLT(cerror)
|
||||
|
|
Loading…
Reference in New Issue