From: Ulrich Drepper Date: Wed, 18 Mar 1998 14:33:53 +0000 (+0000) Subject: Check correctly for error return; call syscall_error through PLT. X-Git-Tag: upstream/2.30~10627^2~3279 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff259c29e8a446b17bf8f6307a49fc841f7aceeb;p=external%2Fglibc.git Check correctly for error return; call syscall_error through PLT. --- diff --git a/sysdeps/unix/sysv/linux/arm/socket.S b/sysdeps/unix/sysv/linux/arm/socket.S index 1940061..0ff6dd0 100644 --- a/sysdeps/unix/sysv/linux/arm/socket.S +++ b/sysdeps/unix/sysv/linux/arm/socket.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1995, 1996, 1997, 1998 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 @@ -41,9 +41,9 @@ ENTRY (__socket) /* Do the system call trap. */ swi SYS_ify(socketcall) - /* %eax is < 0 if there was an error. */ + /* r0 is < 0 if there was an error. */ cmn r0, $124 - bge syscall_error + bge syscall_error(PLT) /* Successful; return the syscall's value. */ RETINSTR(mov,pc,r14)