[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Doing Stupid things?!
It is forbidden to strip shared libraries, since there is information
critical to the dynamic loader included in the stripped segments
(the names of the global symbols).
In order to have small shared libraries, you must either:
1. Compile them without "-g".
or:
2. Strip them using the "--strip-debug" flag.
I recommend you using this flag with all the system's binary files,
including the executables; You'll never know when you will need a
symbol. For example, "ps" looks at the symbol table of the kernel.
The debug-information is needed only by gdb, but the other
information is critical for many purposes.
And if you can avoid stripping other's files (e.g. system files),
then just don't strip them! I don't think it is a good idea to strip
files which are not yours...
--
Eli Marmor
***************************************************************
* ___ _ __ ___ __ _ |__ _ _ marmor@elmar.co.il *
* | | | \ | | \ | / |\/ El-Mar Software Ltd. *
* | | | _) | | _) / | \ Tel.: 972-50-237338 *
* ___________________________ Fax: 972-9-7484279 *
* \_________________________ \ http://www.elmar.co.il *
* _________ __ ____ \ \____ __ _ *
* \_______ \ \_\| _ \ __ \____ \ \ \ | | *
* \ \ | | \ \ \_\ \ \ \ \ | | *
* \ \ | | _\ \ ) ) \ \ \_\_ *
* \ \ |_| \___) (_/ \_\ \_\ *
* \ \_______________________________ *
* \________________________________\ *
* *
*************************************************