0

Is there any command similar to objcopy which can remove symbol from shared objects files on linux platform ?

Chandu
  • 1,837
  • 7
  • 30
  • 51
  • Remove in the sense of "strip" (it can remove symbol names one by one, check it's man page) or actually yank the whole symbol, code included out of the library (the later can be accomplished by building static library first, pulling stuff out of it later with ar, then relinking it into a shared)? – oakad Nov 28 '13 at 07:27
  • Strip is not working on Linux so. And I dont have option of removing it from .o or .a . The symbol is needed during linking of so. After that I want to remove or hide the symbol for so....? – Chandu Nov 28 '13 at 07:41
  • Yes it is, what seems to be a problem? – oakad Nov 28 '13 at 07:42
  • Can strip remove symbols from so ? or it can only remove symbols from executables ? – Chandu Nov 28 '13 at 07:45

1 Answers1

0

The strip utility has the following option, which may help:

-N --strip-symbol=<name>         Do not copy symbol <name> 
Alex Che
  • 6,659
  • 4
  • 44
  • 53