From f60db8eda7b87c63f3bc89d4e82fc4f144fb4aa3 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 16 Jun 2003 23:07:43 +0000 Subject: Update. 2003-06-16 Ulrich Drepper * sysdeps/unix/sysv/linux/i386/socket.S: Add unwind information. * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Fix type of result variable. * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date also --- sysdeps/unix/sysv/linux/i386/socket.S | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'sysdeps/unix') diff --git a/sysdeps/unix/sysv/linux/i386/socket.S b/sysdeps/unix/sysv/linux/i386/socket.S index a5af6b2907..e403899cc6 100644 --- a/sysdeps/unix/sysv/linux/i386/socket.S +++ b/sysdeps/unix/sysv/linux/i386/socket.S @@ -1,4 +1,4 @@ -/* Copyright (C) 1995, 1996, 1997, 1998, 2002 Free Software Foundation, Inc. +/* Copyright (C) 1995,1996,1997,1998,2002,2003 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,6 +41,7 @@ #endif .globl __socket + cfi_startproc ENTRY (__socket) #if defined NEED_CANCELLATION && defined CENABLE SINGLE_THREAD_P @@ -49,6 +50,7 @@ ENTRY (__socket) /* Save registers. */ movl %ebx, %edx + cfi_register (3, 2) movl $SYS_ify(socketcall), %eax /* System call number in %eax. */ @@ -61,6 +63,7 @@ ENTRY (__socket) /* Restore registers. */ movl %edx, %ebx + cfi_restore (3) /* %eax is < 0 if there was an error. */ cmpl $-125, %eax @@ -74,13 +77,16 @@ L(pseudo_end): #if defined NEED_CANCELLATION && defined CENABLE /* We need one more register. */ 1: pushl %esi + cfi_adjust_cfa_offset(4) /* Enable asynchronous cancellation. */ CENABLE movl %eax, %esi + cfi_offset(6, -8) /* %esi */ /* Save registers. */ movl %ebx, %edx + cfi_register (3, 2) movl $SYS_ify(socketcall), %eax /* System call number in %eax. */ @@ -93,6 +99,7 @@ L(pseudo_end): /* Restore registers. */ movl %edx, %ebx + cfi_restore (3) /* Restore the cancellation. */ xchgl %esi, %eax @@ -101,6 +108,8 @@ L(pseudo_end): /* Restore registers. */ movl %esi, %eax popl %esi + cfi_restore (6) + cfi_adjust_cfa_offset(-4) /* %eax is < 0 if there was an error. */ cmpl $-125, %eax @@ -109,6 +118,7 @@ L(pseudo_end): /* Successful; return the syscall's value. */ ret #endif + cfi_endproc PSEUDO_END (__socket) #ifndef NO_WEAK_ALIAS -- cgit 1.4.1