From owner-freebsd-hackers Sun Dec 27 09:49:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA15656 for freebsd-hackers-outgoing; Sun, 27 Dec 1998 09:49:34 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA15650 for ; Sun, 27 Dec 1998 09:49:31 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from localhost (dfr@localhost) by nlsystems.com (8.9.1/8.8.5) with SMTP id RAA00774; Sun, 27 Dec 1998 17:48:50 GMT Date: Sun, 27 Dec 1998 17:48:49 +0000 (GMT) From: Doug Rabson To: Ulrich Drepper cc: "Kaleb S. KEITHLEY" , hackers@FreeBSD.ORG, bug-gnu-utils@gnu.org Subject: Re: ld (bfd): wrong function names for ELF shared library DT_{INIT,FINI} In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 27 Dec 1998, Ulrich Drepper wrote: > "Kaleb S. KEITHLEY" writes: > > > The ELF specification says that the names of the DT_{INIT,FINI} > > functions in shared libraries are named .init() and .fini(), not _init() > > and _fini(). > > I assume you refer to the section titled "Initialization adn > Termination Functions" in the TIS. If yes, read it again. > > What is named ".init" and ".fini" are the **section** where these > functions are placed in. This are not the function names. In fact, > the function names are not specified at all. _init and _fini come > from folklore (speek, the first ELF implementations). I haven't looked at the i386 code but the alpha _init() and _fini() are already in the correct sections. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message