This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Repackaging a shared library...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]