Tova ne e nov podhod, no i ne vijdam niakoi da go pravi. Polzvai strip.
# gcc foo.c # ls -l a.out -rwxr-xr-x 1 root root 13031 апр 18 21:13 a.out* # gcc -static foo.c -o as.out # ls -l as.out -rwxr-xr-x 1 root root 1569032 апр 18 21:14 as.out* # file a* a.out: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked (uses shared libs), not stripped as.out: ELF 32-bit LSB executable, Intel 80386, version 1, statically linked, not stripped # strip -RNote -RComment a* # ls -l a* -rwxr-xr-x 1 root root 382608 апр 18 21:15 as.out* -rwxr-xr-x 1 root root 2840 апр 18 21:15 a.out* Mojesh da stripvash relocatables, executables, shared obstacles, ars, etc. Neshto takova sigurno shte svyrshi rabota: for q in `find / -type f -perm +0755 | xargs file | grep -e "not strip" | cut -f1 -d":"` ; do strip -RComment -RNote "$q" ; done A, da. Updatevai MD5 sumite sled tova :-) /s STRIP.1(1) GNU STRIP.1(1) NAME strip - Discard symbols from object files. On Thu, 18 Apr 2002, Nikola Minev wrote: > > Zdrasti list, izvinete neobrazovanostta mi, no triabva da osvobodia malko > miasto na diska, > kato trieneteo na dokumentaciata ne e reshenie, polzvam ia :) Mahnah > vsichki core failove, > nenujni programi - bez osoben rezultat. Idei? 4 GB disk, linux fs i swap. > Ne vyrvi da slagam > nova distribucia. Blagodaria. > > Nikola > __________________________________ > 12MB-POP3-WAP-SMS---TOBA-E-mail.bG > ---------------------------------- > > " Ako uckame u Bue agpec B mail.bg > ugeme myk: http://www.mail.bg/new/ " > > =========================================================================== > A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers) > http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora > =========================================================================== A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers) http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora