From owner-freebsd-hackers Sun Dec 27 11:25:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA25291 for freebsd-hackers-outgoing; Sun, 27 Dec 1998 11:25:37 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ics.com (ics.com [140.186.40.192]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA25286 for ; Sun, 27 Dec 1998 11:25:36 -0800 (PST) (envelope-from kaleb@ics.com) Received: from kaleb.keithley.belmont.ma.us (pmdialin1.ics.com [140.186.40.175]) by ics.com (8.9.0.Beta5/8.9.0.Beta5) with ESMTP id OAA04049 Sun, 27 Dec 1998 14:25:19 -0500 (EST) Received: from kaleb.keithley.belmont.ma.us (localhost [127.0.0.1]) by kaleb.keithley.belmont.ma.us (8.9.1/8.9.1) with SMTP id PAA11431 for ; Sun, 27 Dec 1998 15:50:15 -0500 (EST) (envelope-from kaleb@ics.com) Message-ID: <36869D85.7DE14518@ics.com> Date: Sun, 27 Dec 1998 15:50:13 -0500 From: "Kaleb S. KEITHLEY" Organization: Integrated Computer Solutions X-Mailer: Mozilla 3.04Gold (X11; I; FreeBSD 3.0-RELEASE i386) MIME-Version: 1.0 To: hackers@FreeBSD.ORG Subject: [Fwd: Re: ld (bfd): wrong function names for ELF shared library DT_{INIT,FINI}] Content-Type: multipart/mixed; boundary="------------52BFA1D76201DD564487EB71" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------52BFA1D76201DD564487EB71 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit forwarded here because of a mangled hackers address in the CC: line. Okay. I've confirmed that on e.g. Linux that ld does create .init and .fini sections, and on ELF FreeBSD 3.0-RELEASE it does not. Was this intentional? -- Kaleb --------------52BFA1D76201DD564487EB71 Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Received: from cygnus.com (runyon.cygnus.com [205.180.230.5]) by ics.com (8.9.0.Beta5/8.9.0.Beta5) with ESMTP id OAA03629 Sun, 27 Dec 1998 14:01:18 -0500 (EST) 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 LAA04665; Sun, 27 Dec 1998 11:00:39 -0800 (PST) Received: (drepper@localhost) by happy.cygnus.com (8.8.7/8.6.4) id KAA27749; Sun, 27 Dec 1998 10:56:54 -0800 To: "Kaleb S. KEITHLEY" Cc: hcakers@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> <36868FAB.31DFF4F5@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 10:56:54 -0800 In-Reply-To: "Kaleb S. KEITHLEY"'s message of "Sun, 27 Dec 1998 14:51:07 -0500" Message-ID: X-Mailer: Gnus v5.5/XEmacs 20.4 - "Emerald" "Kaleb S. KEITHLEY" writes: > The current binutils/ld does not even create .init or .fini sections at > all. Of course they do. I don't know about any of these *BSD platforms but if those who did the port did it right there are these sections. On all ELF platforms I know (Linux, Hurd, Solaris) there are these sections. > The way the binutils ld currently works, if ld sees a function called > _init() when it is creating a shared library, it gives it all the > semantics of .init(), but doesn't even create a .init section. Likewise > for _fini. Wrong in general. Maybe true for the *BSD ports but it's no generic problem. If it is what you see complain at those who wrote the *BSD support. -- ---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA Cygnus Solutions `--' drepper at cygnus.com `------------------------ --------------52BFA1D76201DD564487EB71-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message