From owner-freebsd-stable Tue Aug 8 1:21: 5 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 4915337B69A for ; Tue, 8 Aug 2000 01:20:56 -0700 (PDT) (envelope-from gram@cequrux.com) Received: (from nobody@localhost) by citadel.cequrux.com (8.8.8/8.6.9) id KAA15677 for ; Tue, 8 Aug 2000 10:20:43 +0200 (SAST) Received: by citadel.cequrux.com via recvmail id 15507; Tue Aug 8 10:19:36 2000 Message-ID: <398FC2DB.91CE8B72@cequrux.com> Date: Tue, 08 Aug 2000 10:20:44 +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: stable@freebsd.org Subject: Re: Linking both aout and elf libraries References: <398E9E37.9E3A482B@cequrux.com> <200008071625.JAA39374@vashon.polstra.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Polstra wrote: > > In article <398E9E37.9E3A482B@cequrux.com>, Graham Wheeler > 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? > > No, there isn't. > > > I know that NetBSD can do this (and in fact does this by default > > AFAIK), > > Are you sure? I don't have a NetBSD system, but I would be extremely > surprised if it could do that -- _extremely_ surprised. There are My NetBSD hacker friend hasn't done this himself, but he referred me to the man page for ld, which (even under FreeBSD) claims that ld can mix and match any of the formats that are supported, and that a list of such formats can be obtained by running "objdump -i". Under NetBSD this lists both aout and elf, while under FreeBSD it lists elf only. -- 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