strip debug

Arzola, Nelson NArzola at
Sun Jun 4 23:23:14 PDT 2000

L Vogtmann wrote:

>	I was just wondering if this was a kosher way to strip the debugging
> symbols from all the binaries on the LFS system.  Any better ways?
> % find / -type f -exec strip --strip-debug '{}' ';'

If I remember correctly, I tried to use something very similar.  I
discovered that it removed some important symbols from my shared libraries.
It takes a little longer, but I now use the following commands:

unix> find / -type f -perm +111 -exec file {} \; | grep 'ELF' | \
		grep 'executable' | grep -v 'stripped' > /tmp/list
unix> strip `cat /tmp/list`


Mail archive:
IRC access: server: port: 6667 channel: #LFS
News Reader access:
Unsubscribe: email lfs-discuss-request at and put
"unsubscribe" (without the quotation marks) in the body of the message
(no subject is required)

More information about the lfs-dev mailing list