In the last episode (Aug 09), M. Warner Losh said:
> 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.

As long as any structs that are passed back and forth have the same
members and alignment, it should work.  This includes struct FILE,
which means if the app tries to use stdio it'll likely crash.

I just compiled a little "hello world" object file on SUSE and linked
it on FreeBSD and it ran (it just calls printf, which is safe since it
doesn't pass a FILE *).

-- 
        Dan Nelson
        [EMAIL PROTECTED]
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to