From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9687 invoked by alias); 16 Sep 2002 16:46:51 -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 9669 invoked from network); 16 Sep 2002 16:46:50 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (66.187.233.200) by sources.redhat.com with SMTP; 16 Sep 2002 16:46:50 -0000 Received: from free.redhat.lsd.ic.unicamp.br (aoliva2.cipe.redhat.com [10.0.1.156]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g8GGkn819082 for ; Mon, 16 Sep 2002 12:46:49 -0400 Received: from free.redhat.lsd.ic.unicamp.br (localhost.localdomain [127.0.0.1]) by free.redhat.lsd.ic.unicamp.br (8.12.5/8.12.5) with ESMTP id g8GGkmWQ006385 for ; Mon, 16 Sep 2002 13:46:48 -0300 Received: (from aoliva@localhost) by free.redhat.lsd.ic.unicamp.br (8.12.5/8.12.5/Submit) id g8GGkkmY006348 for libc-hacker@sources.redhat.com; Mon, 16 Sep 2002 13:46:46 -0300 Resent-Date: Mon, 16 Sep 2002 12:03:29 -0300 Resent-From: oliva@lsd.ic.unicamp.br Resent-Message-Id: <200209161503.g8GF3Tau012955@free.redhat.lsd.ic.unicamp.br> To: Andreas Jaeger Cc: GNU libc hacker Subject: Re: Fix _exit for Linux References: From: Alexandre Oliva Organization: GCC Team, Red Hat Date: Mon, 16 Sep 2002 09:46:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-09/txt/msg00038.txt.bz2 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, 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. -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist Professional serial bug killer