From patchwork Thu May 28 09:11:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 39372 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 43B05395ACC5; Thu, 28 May 2020 09:11:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 43B05395ACC5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1590657097; bh=nZC7rrLy4RCyjMnrnOrAmrfQVOfbn+LBDwxaMCEj8Z4=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=pZ5B51/XaO7EQm8eLYgB+I1rxl2z6c5N2N6UgsQyeeNVeQi1l1IEKoyevPg4xXRH7 zVL+pTY3nh997LA3YnNdM+YNvhbXpX+DF4PjnW+jOqaPX8WrP+Bu0qZwGO/YZk9dj8 /94433tX/yU6PB8xxnZkn7XJdGa3V2Icj2OmNKmY= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by sourceware.org (Postfix) with ESMTP id 36691383F848 for ; Thu, 28 May 2020 09:11:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 36691383F848 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-155-uf1-bG6xMXmZLCoZj-yDng-1; Thu, 28 May 2020 05:11:29 -0400 X-MC-Unique: uf1-bG6xMXmZLCoZj-yDng-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 782D339345; Thu, 28 May 2020 09:11:28 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-112-91.ams2.redhat.com [10.36.112.91]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C4A2D60C05; Thu, 28 May 2020 09:11:27 +0000 (UTC) To: libc-alpha@sourceware.org Subject: [PATCH] i386: Remove unused file sysdeps/unix/i386/sysdep.S Date: Thu, 28 May 2020 11:11:26 +0200 Message-ID: <877dwwfmpt.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, KAM_STOCKGEN, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Florian Weimer via Libc-alpha From: Florian Weimer Reply-To: Florian Weimer Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Linux overrides this file via sysdeps/unix/sysv/linux/i386/sysdep.c. Hurd does not have sysdeps/unix/i386 on its search path, so it uses csu/sysdep.c instead. --- sysdeps/unix/i386/sysdep.S | 64 ---------------------------------------------- 1 file changed, 64 deletions(-) diff --git a/sysdeps/unix/i386/sysdep.S b/sysdeps/unix/i386/sysdep.S deleted file mode 100644 index 60c4c604ca..0000000000 --- a/sysdeps/unix/i386/sysdep.S +++ /dev/null @@ -1,64 +0,0 @@ -/* Copyright (C) 1991-2020 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 - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#include -#define _ERRNO_H -#include - -#if IS_IN (rtld) -# include /* Defines RTLD_PRIVATE_ERRNO. */ -#endif - -.globl C_SYMBOL_NAME(errno) -.globl syscall_error - -__syscall_error: -#if defined (EWOULDBLOCK_sys) && EWOULDBLOCK_sys != EAGAIN - /* We translate the system's EWOULDBLOCK error into EAGAIN. - The GNU C library always defines EWOULDBLOCK==EAGAIN. - EWOULDBLOCK_sys is the original number. */ - cmpl $EWOULDBLOCK_sys, %eax /* Is it the old EWOULDBLOCK? */ - jne notb /* Branch if not. */ - movl $EAGAIN, %eax /* Yes; translate it to EAGAIN. */ -notb: -#endif -#ifndef PIC -# ifndef NO_TLS_DIRECT_SEG_REFS - movl %eax, %gs:C_SYMBOL_NAME(errno@NTPOFF) -# else - movl %gs:0, %ecx - movl %eax, C_SYMBOL_NAME(errno@NTPOFF)(%ecx) -# endif -#else - /* The caller has pushed %ebx and then set it up to - point to the GOT before calling us through the PLT. */ - movl C_SYMBOL_NAME(errno@GOTNTPOFF)(%ebx), %ecx - - /* Pop %ebx value saved before jumping here. */ - popl %ebx -# ifndef NO_TLS_DIRECT_SEG_REFS - addl %gs:0, %ecx - movl %eax, (%ecx) -# else - movl %eax, %gs:0(%ecx) -# endif -#endif - movl $-1, %eax - ret - -#undef __syscall_error -END (__syscall_error)