Repackaging a shared library...

Daniel Jacobowitz drow@false.org
Mon Jul 3 14:11:00 GMT 2006


On Mon, Jul 03, 2006 at 09:12:29AM -0400, Mikhail Teterin wrote:
> On Sunday 02 July 2006 19:15, Alan Modra wrote:
> = On Sat, Jul 01, 2006 at 12:29:48AM -0400, Mikhail Teterin wrote:
> = > but is not it possible to 
> = > edit the library directly -- changing its dependencies, and providing the 
> = > possibly missing symbols (such as _stderr)?
> = 
> = No.  Binutils does not provide tools to manipulate final linked objects
> = (such as shared libraries) in any signifigant way.
> 
> Discouraging... :-(
> 
> But is such a manipulation even possible with the ELF format? Or is this task 
> on the level of complexity of decompiling?

In general, it's not possible.

The actual symbol manipulations you want are not too hard.  However,
usually much more would be required.  e.g. macros from header files may
make incompatible assumptions about the contents of a FILE*.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Binutils mailing list