*BSD News Article 94567


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news.apfel.de!fu-berlin.de!news-ber1.dfn.de!news-ham1.dfn.de!news.dkrz.de!enterprise.desy.de!not-for-mail
From: Olaf Manczak <Olaf.Manczak@desy.de>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: ELF?
Date: Sun, 27 Apr 1997 22:53:32 +0200
Organization: Deutsches Elektronen Synchrotron, DESY
Lines: 29
Message-ID: <3363BCCC.3DF5@desy.de>
References: <cmott-2004971630470001@192.168.0.5>
	  <5jooj9$9c8@uriah.heep.sax.de> <33609855.6725@desy.de> <29577CEB029DEE7D.15EB282B5ACE579C.9F4A01791A26A597@library-proxy.airnews.net>
NNTP-Posting-Host: zedy10.desy.de
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 5.5.1 sun4m)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39840


J Wunsch wrote:

> You can of course build it.  John Polstra's ELFkit used to be
> available for quite some time.  It's only that it's not included by
> default, since it would clash with some of the existing tools.

Easy to say, more difficult to do:
a) the ELFkit available from ftp.polstra.com is a bit out of date
b) before you build your applications you need to rebuild at least
   libc.so in the ELF format if not all the libraries
I really appreciate John's work on ELF but it is not at the moment 
this option in not easier than, say, switching to Linux :-(

> > Still waiting for sth real,
> 
> Curious, for what reason?

If you want to use C++ with its global/static constructors/destructors
and you want to build shared libraries and load them with dlopen or
LD_PRELOAD you need ELF since you need init and fini sections in the
object format rather a hack used by the gnu linker which builds a list
of constructors and destructors during linkage.

Cheers,

- O.

PS: I still haven't heard any answer to the question when the ELF
    format is going to become default one in FreeBSD...