about strip
Hello everyone,
Could anyone show me how to use strip under Linux, for example, strip -s. I have read the Linux man manual of strip, but more confused after reading it. I am also wondering in what situations do you use it? thanks in advance, George |
Quote:
Quote:
Quote:
you want your binary file to be smaller in size. you want to hide symbols from a proprietary program to make reverse engineering more difficult. |
Thank you jlliagre,
Quote:
regards, George |
He means that strip removes a human readable symbol table - like the one you see with
Code:
nm filename |
Indeed, either the manual page is wrong or an object would be made unusable after "strip -s".
I'll let you test which one is true. I would tend to believe it is the former, and only unnecessary symbol are stripped, but who knows ... |
Thank you Jim!
Quote:
regards, George |
Hi jlliagre,
Quote:
regards, George |
They are only unnecessary for executing the program, but they are very valuable for post mortem crash analysis and debug.
|
It's a value call- unstripped image files use more space and some more memory, but you need them when things go bad, like for core analysis with gdb.
strip is there because strip has been part of UNIX for looong time. It's utility is simply how you perceive it: strip is good or strip is bad or strip is neutral. |
All times are GMT -5. The time now is 06:43 AM. |