Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
> I see. This is interesting. I guess I don't care too much about disk
> size and I like the idea that the thing doesn't have to depend on other
> parts of the system. But if I can save space for free, I'll do it. This
> brings me to "strip": Does anyone understand the "strip" command. I
> don't, but I have used it on compiled binaries. It really reduces the
> size and they seem to work just the same. Weird, no?
If it works and you don't care then I'd suggest ignoring it. I only
suggested the other since you seemed to be concerned about it's size.
Strip shrinks binaries by removing debugging information. This can shrink
the file, speed it up, and make it harder to reverse engineer. It also
makes it harder to report a useful bug report if it goes kuput so I'd
suggest only using it where the space/speed matter or on highly reliable
apps. Or if you never give bug reports I guess it doesn't matter either.
:)
> Here's an example using dillo:
>
> # cp dillo dillo2
> # strip dillo2
> # ls -lAF dillo*
> -rwxr-xr-x 1 root other 6413104 Mar 13 16:58 dillo*
> -rwxr-x--- 1 root other 364924 Mar 14 01:05 dillo2*
> # mv dillo2 dillo
>
> Hmmm... the strip command finished in less than one second and the dillo
> file was reduced by more than 6 MB down to a mere 365 KB. Interesting!
>
> Regarding dependencies: I have all these even with the small file:
>
> ldd /usr/local/bin/dillo
> librt.so.1 => /usr/lib/librt.so.1
> libpng.so.2 => /usr/local/lib/libpng.so.2
> libz.so => /usr/local/lib/libz.so
> libpthread.so.1 => /usr/lib/libpthread.so.1
> libgtk-1.2.so.0 => /usr/local/lib/libgtk-1.2.so.0
> libgdk-1.2.so.0 => /usr/local/lib/libgdk-1.2.so.0
> libgmodule-1.2.so.0 => /usr/local/lib/libgmodule-1.2.so.0
> libglib-1.2.so.0 => /usr/local/lib/libglib-1.2.so.0
> libdl.so.1 => /usr/lib/libdl.so.1
> libXext.so.0 => /usr/openwin/lib/libXext.so.0
> libX11.so.4 => /usr/openwin/lib/libX11.so.4
> libsocket.so.1 => /usr/lib/libsocket.so.1
> libnsl.so.1 => /usr/lib/libnsl.so.1
> libm.so.1 => /usr/lib/libm.so.1
> libc.so.1 => /usr/lib/libc.so.1
> libaio.so.1 => /usr/lib/libaio.so.1
> libdga.so.1 => /usr/openwin/lib/libdga.so.1
> libmp.so.2 => /usr/lib/libmp.so.2
> libthread.so.1 => /usr/lib/libthread.so.1
> /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1
>
> So maybe the big difference in size is all about the stripping (whatever
> that is!).
_______________________________________________
discussion mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/discussion