Repackaging a shared library...

Mikhail Teterin mi+kde@aldan.algebra.com
Sat Jul 1 04:29:00 GMT 2006


Hello!

I'm pretty sure the following is possible, indeed, straightforward, but don't 
know how to do it.

I want to be able to repackage a shared library compiled and linked for one 
ELF-based Operating System to work on another -- using the same hardware 
architecture.

For simplicity, let's consider an example of the Macromedia/Adobe Flash plugin 
(libflash.so) found in the plugins/ subdirectory of your Firefox install.

The shared library is only available for Linux -- I'd like to use it on 
FreeBSD.

A hack (http://freshports.org/www/linuxpluginwrapper) exists, that provides 
emulation for the libraries, libflash.so expects, but is not it possible to 
edit the library directly -- changing its dependencies, and providing the 
possibly missing symbols (such as _stderr)?

Thanks!

	-mi



More information about the Binutils mailing list