Date: Wed, 10 May 2000 15:24:11 +0930 From: Greg Lehey <grog@lemis.com> To: R Joseph Wright <rjoseph@mammalia.org> Cc: freebsd-questions <freebsd-questions@FreeBSD.ORG> Subject: Re: format of libraries Message-ID: <20000510152411.S86264@freebie.lemis.com> In-Reply-To: <Pine.BSF.4.21.0005092231070.9945-100000@manatee.mammalia.org> References: <20000510135017.K86264@freebie.lemis.com> <Pine.BSF.4.21.0005092231070.9945-100000@manatee.mammalia.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, 9 May 2000 at 22:37:23 -0700, R Joseph Wright wrote: > 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? Yes. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000510152411.S86264>