Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2000 13:50:17 +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:  <20000510135017.K86264@freebie.lemis.com>
In-Reply-To: <Pine.BSF.4.21.0005091739320.8432-100000@manatee.mammalia.org>
References:  <Pine.BSF.4.21.0005091739320.8432-100000@manatee.mammalia.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

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?20000510135017.K86264>