From owner-freebsd-stable Tue Aug 8 2:10:28 2000 Delivered-To: freebsd-stable@freebsd.org Received: from citadel.cequrux.com (citadel.cequrux.com [192.96.22.18]) by hub.freebsd.org (Postfix) with ESMTP id 915F937B6FE for ; Tue, 8 Aug 2000 02:10:19 -0700 (PDT) (envelope-from gram@cequrux.com) Received: (from nobody@localhost) by citadel.cequrux.com (8.8.8/8.6.9) id LAA19476; Tue, 8 Aug 2000 11:06:54 +0200 (SAST) Received: by citadel.cequrux.com via recvmail id 19394; Tue Aug 8 11:05:55 2000 Message-ID: <398FCDBE.396AFB81@cequrux.com> Date: Tue, 08 Aug 2000 11:07:10 +0200 From: Graham Wheeler Organization: Cequrux Technologies X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 2.2.8-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Max Khon Cc: Eugene Grosbein , stable@FreeBSD.ORG Subject: Re: Linking both aout and elf libraries References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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