From owner-freebsd-stable Mon Aug 7 9:26:28 2000 Delivered-To: freebsd-stable@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 7C29B37B994 for ; Mon, 7 Aug 2000 09:26:16 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.3) with ESMTP id JAA01578; Mon, 7 Aug 2000 09:25:39 -0700 (PDT) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.3/8.9.1) id JAA39374; Mon, 7 Aug 2000 09:25:38 -0700 (PDT) (envelope-from jdp@polstra.com) Date: Mon, 7 Aug 2000 09:25:38 -0700 (PDT) Message-Id: <200008071625.JAA39374@vashon.polstra.com> To: stable@freebsd.org Reply-To: stable@freebsd.org Cc: gram@cequrux.com Subject: Re: Linking both aout and elf libraries In-Reply-To: <398E9E37.9E3A482B@cequrux.com> References: <398E9E37.9E3A482B@cequrux.com> Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 many obstacles, not least of which is the fact that C language global symbols have different naming conventions in a.out than in ELF. For example, if you reference a global symbol "foo" in a C program, it comes out as "_foo" in a.out objects but as "foo" in ELF objects. I suppose this could be hacked around with enough work, but it's hard for me to believe that anybody would decide it was worth the effort. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message