From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15270 invoked by alias); 16 Sep 2002 16:54:19 -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 15144 invoked from network); 16 Sep 2002 16:54:18 -0000 Received: from unknown (HELO sunsite.mff.cuni.cz) (195.113.19.66) by sources.redhat.com with SMTP; 16 Sep 2002 16:54:18 -0000 Received: (from jakub@localhost) by sunsite.mff.cuni.cz (8.11.6/8.11.6) id g8GGs7Q26652; Mon, 16 Sep 2002 18:54:07 +0200 Date: Mon, 16 Sep 2002 09:54:00 -0000 From: Jakub Jelinek To: Andreas Jaeger Cc: Alexandre Oliva , GNU libc hacker Subject: Re: Fix _exit for Linux Message-ID: <20020916185406.G1013@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from aj@suse.de on Mon, Sep 16, 2002 at 05:57:08PM +0200 X-SW-Source: 2002-09/txt/msg00040.txt.bz2 On Mon, Sep 16, 2002 at 05:57:08PM +0200, Andreas Jaeger wrote: > 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. There is a difference between libc_hidden_def in .S files and in .c files. In .S files it will work even if libc_hidden_proto () was not declared in header files (usually the assembly doesn't even include those headers), while if you use libc_hidden_{def,weak} without previous libc_hidden_proto, things will break badly... Jakub