From owner-freebsd-hackers Sun Dec 27 08:23:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA07864 for freebsd-hackers-outgoing; Sun, 27 Dec 1998 08:23:58 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from cygnus.com (runyon.cygnus.com [205.180.230.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA07859 for ; Sun, 27 Dec 1998 08:23:57 -0800 (PST) (envelope-from drepper@cygnus.com) Received: from happy.cygnus.com (happy.cygnus.com [205.180.230.206]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id IAA01526; Sun, 27 Dec 1998 08:23:36 -0800 (PST) Received: (drepper@localhost) by happy.cygnus.com (8.8.7/8.6.4) id IAA27681; Sun, 27 Dec 1998 08:19:52 -0800 To: "Kaleb S. KEITHLEY" Cc: hackers@FreeBSD.ORG, bug-gnu-utils@gnu.org Subject: Re: ld (bfd): wrong function names for ELF shared library DT_{INIT,FINI} References: <36865D18.1CFBAE39@ics.com> Reply-To: drepper@cygnus.com (Ulrich Drepper) X-fingerprint: BE 3B 21 04 BC 77 AC F0 61 92 E4 CB AC DD B9 5A Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII From: Ulrich Drepper Date: 27 Dec 1998 08:19:52 -0800 In-Reply-To: "Kaleb S. KEITHLEY"'s message of "Sun, 27 Dec 1998 11:15:21 -0500" Message-ID: Lines: 18 X-Mailer: Gnus v5.5/XEmacs 20.4 - "Emerald" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "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). -- ---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA Cygnus Solutions `--' drepper at cygnus.com `------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message