Converting libfoo.so for linux to freebsd
Seán C. Farley
sean-freebsd at farley.org
Tue Aug 9 21:23:35 GMT 2005
On Tue, 9 Aug 2005, M. Warner Losh wrote:
> I have recently purcahsed a device that comes with a .so for linux,
> but no sources. Is there any way one can take an arbitrary linux .so
> which appears to have no dependencies to a FreeBSD .so? The binary
> code is about 20k or so.
>
> Alternatively, anybody know how to take a linux .so and generate a .s
> that can be fed into the linux toolchain to generate a new .so...
Although I have never tried it, I had read somewhere that you could
possibly convert a Linux .so using objcopy.
Found it:
http://groups-beta.google.com/group/fa.freebsd.questions/browse_frm/thread/2c1ce35fab83427/7add378b8e5a7006
I am curious if it works for you too.
Seán
--
sean-freebsd at farley.org
More information about the freebsd-hackers
mailing list