From owner-freebsd-questions Tue May 9 22:37:41 2000 Delivered-To: freebsd-questions@freebsd.org Received: from manatee.mammalia.org (manatee.mammalia.org.50.231.216.in-addr.arpa [216.231.50.6]) by hub.freebsd.org (Postfix) with ESMTP id B867F37B7CA for ; Tue, 9 May 2000 22:37:37 -0700 (PDT) (envelope-from rjoseph@mammalia.org) Received: from localhost (rjoseph@localhost) by manatee.mammalia.org (8.9.3/8.9.3) with ESMTP id WAA09960; Tue, 9 May 2000 22:37:23 -0700 (PDT) (envelope-from rjoseph@mammalia.org) Date: Tue, 9 May 2000 22:37:23 -0700 (PDT) From: R Joseph Wright To: Greg Lehey Cc: freebsd-questions Subject: Re: format of libraries In-Reply-To: <20000510135017.K86264@freebie.lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 10 May 2000, Greg Lehey wrote: > On Tuesday, 9 May 2000 at 17:46:49 -0700, R Joseph Wright wrote: > > I installed a linux program on my machine which includes a library > > libxxx.a. I was wondering if libraries need to be "brandelf"-ed as well > > as executables. > > > > But when I did "brandelf libxxx.a" it said that it was not an ELF > > format. So I checked other libraries with the suffix .a. They > > also were not ELF. But all the .so libraries said they were ELF. > > > > What format are the libraries with .a suffix? > > ar(1) format. It's basically an archive of object files. > > > Does anything need to be done with them if they are linux binaries? > > Not that I know of, except that you probably won't be able to link > them with FreeBSD, because they assume a different environment. There > are some exceptions, though, notably functions that don't make any > calls to other functions. Does this mean that a linux program needing shared libraries cannot read a FreeBSD version and must have the linux version installed under /compat/linux? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message