From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7033 invoked by alias); 16 Sep 2002 16:37:43 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 7017 invoked from network); 16 Sep 2002 16:37:42 -0000 Received: from unknown (HELO Cantor.suse.de) (213.95.15.193) by sources.redhat.com with SMTP; 16 Sep 2002 16:37:42 -0000 Received: from Hermes.suse.de (Charybdis.suse.de [213.95.15.201]) by Cantor.suse.de (Postfix) with ESMTP id BF38A14876; Mon, 16 Sep 2002 18:37:41 +0200 (MEST) Received: from aj by arthur.inka.de with local (Exim 3.34 #1) id 17qyFI-0002uY-00; Mon, 16 Sep 2002 17:57:08 +0200 Mail-Copies-To: never To: Alexandre Oliva Cc: GNU libc hacker Subject: Re: Fix _exit for Linux References: From: Andreas Jaeger Date: Mon, 16 Sep 2002 09:37:00 -0000 In-Reply-To: (Alexandre Oliva's message of "16 Sep 2002 11:48:44 -0300") Message-ID: User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Artificial Intelligence, i386-suse-linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-09/txt/msg00037.txt.bz2 Alexandre Oliva writes: > On Sep 16, 2002, Andreas Jaeger wrote: > >> +libc_hidden_def (_exit) > > Hmm. I don't think this is right. libc_hidden_proto (_exit) is > commented out in include/unistd.h, so, if my understanding is correct, In that case it couldn't have worked before, have a look at sysdeps/unix/_exit.S, I just copied the declarations from there and that was the default used before AFAIK. > libc_hidden_def (_exit) is not guaranteed to have the right effect. > In fact, it fails to link libc.so on mips-linux, not only because > _exit ends up undefined, but also because INLINE_SYSCALL has no > arch-specific definition on mips, and we end up with a call to > __syscall_exit, that does not exist. I've tweaked the syscall file > such that a definition for __syscall_exit is generated, but this was > not enough to get _exit() to be defined, so the link of libc.so still > failed. Please send a patch, Andreas -- Andreas Jaeger SuSE Labs aj@suse.de private aj@arthur.inka.de http://www.suse.de/~aj