This is the mail archive of the binutils@sourceware.cygnus.com 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]

Re: redefine symbol names in shlib?


   From: Peter Samuelson <peter@cadcamlab.org>
   Date: Mon, 12 Jun 2000 21:16:04 -0500 (CDT)

   OK, just checking.  Is there a good theoretical or practical reason why 
   objcopy *shouldn't* handle dynamic syms, transparently?

An option should do one thing.  What should --redefine-sym do for an
executable with both a normal symbol and a dynamic symbol table?  I
don't think it should change the symbol in both tables.  If it did,
there would no way to change the symbol in only one table.

More seriously, renaming a dynamic symbol probably won't work
correctly.  If you rename a dynamic symbol, you really need to
recompute the .hash section.  Otherwise, the dynamic linker won't find
the dynamic symbol.  But currently the .hash section is computed only
by the linker when the executable or shared library is created.  It is
not computed by objcopy.

Ian

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