|
From: Heiko Z. <he...@zu...> - 2003-10-28 21:31:40
|
That sounds very promising ! Heiko > On Tue, Oct 28, 2003 at 03:10:43PM -0500, Bruce Smith wrote: >> > #man strip >> > -s >> > --strip-all >> > Remove all symbols. >> > >> > That's the default option for strip. >> >> How about creating a new function called "strip_all" in addition to >> "strip_debug", then change all the scripts to use "strip_all"? > > I've never seen any problems once a file has been stripped. > > Symbols are used for debugging and relocating purpouses, and any > executable file could live without them. > >> If any have problems with any packages, then we can change individual >> scripts back to use "strip_debug". >> >> Also check to make sure all the scripts are calling "strip_all". > > From: http://www.linuxfromscratch.org/view/cvs/chapter09/theend.html > > Having said that, the --strip-debug option we use to strip is quite > harmless under normal circumstances. It doesn't strip anything vital from > the files. It also is quite safe to use --strip-all on regular programs > (don't use that on libraries - they will be destroyed), but it's not as > safe, and the space you gain is not all that much. But if you're tight on > disk space every little bit helps, so decide for yourself. Please refer to > the strip man page for other strip options you can use. The general idea > is to not run strip on libraries (other than --strip-debug), just to be on > the safe side. > > So, new proposed patch: > > strip_debug() > { > echo "removing debug symbols from binaries" > find ./ -type f -iregex ".*\.[^a]" -exec strip -p --strip-all '{}' ';' > 1> /dev/null 2>/dev/null > find ./ -type f -iregex ".*\.[a]" -exec strip -p --strip-debug '{}' > ';' 1> /dev/null 2>/dev/null > } > > Shared objetcs (.so) are always stripped (at least, on debian) > > -- > -- gnupg keyfingerprint -- 48AF 5BF9 8F54 2966 64CC 2327 7CD0 DD91 B09D > 5799 > -- Use of a keyboard or mouse may be linked to serious injuries or > disorders. > Diego Torres - dt...@co... - Madrid / España > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Devil-linux-develop mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devil-linux-develop > > > -- Regards Heiko Zuerker http://www.devil-linux.org |