Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Aug 2000 11:07:10 +0200
From:      Graham Wheeler <gram@cequrux.com>
To:        Max Khon <fjoe@iclub.nsu.ru>
Cc:        Eugene Grosbein <eugen@svzserv.kemerovo.su>, stable@FreeBSD.ORG
Subject:   Re: Linking both aout and elf libraries
Message-ID:  <398FCDBE.396AFB81@cequrux.com>
References:  <Pine.BSF.4.21.0008081555470.35554-100000@iclub.nsu.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Max Khon wrote:
> 
> hi, there!
> 
> On Tue, 8 Aug 2000, Eugene Grosbein wrote:
> 
> > > > Is there a way to build the system so that a single executable can
> > > > be linked against both aout format and elf format libraries?
> >
> > Yes, it is. I have such system. It's 3.5-STABLE.
> > It has all compatXX installed AND /usr/lib/aout
> > filled with contents of /usr/lib of living 2.2.8-RELEASE,
> > here are static a.out libraries  (and another copy of shared :)
> >
> > Now I can say 'export OBJFORMAT=aout; make'
> > and get runnable a.out binary. I used this to link my applications
> > with old commercial a.out libraries that had not new elf variant.
> 
> that's not what original poster wanted to achieve.
> your binary is pure aout binary. he wanted to link both aout and elf
> together

Correct.

We have determined that it is possible on NetBSD, but the underscore
problem bites big, so the libraries have to be pretty much
self-contained, or only refer to symbols in other libraries with the
same format - which means it is impractical.

What would be cool is a convertor, that changes libraries from one
format to the other, and tweaks the underscores in the process. But I
guess the demand for something like this is quite small.

-- 
Dr Graham Wheeler                        E-mail: gram@cequrux.com
Director, Research and Development       WWW:    http://www.cequrux.com
CEQURUX Technologies                     Phone:  +27(21)423-6065
Firewalls/VPN Specialists                Fax:    +27(21)424-3656


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?398FCDBE.396AFB81>