[H-GEN] GCC problem
Anthony Towns
aj at azure.humbug.org.au
Fri Jul 16 09:07:59 EDT 1999
On Fri, Jul 16, 1999 at 10:52:26PM +1000, Johan Myron wrote:
> I've run into a troubling problem. I've recently re-compiled Midnight
> Commander after adding 4 lines of codes [0]. However I was a tad shocked
> to see that the resulting binary weighed in at around 2.7 M, when the
> corresponding pre-compiled program from redhat 6.0 is only around 570 K.
If it's wearing horizontal stripes, that's probably what's increasing it's
perceived girth. Try stripping it. [0]
> I'm assuming this has to do with the fact that the external libraries
> have been statically linked. Does anyone know of a way I could check
> wether this is indeed the case?
$ ldd my_statically_linked_binary
not a dynamic executable
$ ldd /usr/bin/emacs
libXaw.so.6 => /usr/X11R6/lib/libXaw.so.6 (0x40000000)
libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x4003a000)
libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x4004e000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40098000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x400a1000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x400b8000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x400c4000)
libncurses.so.4 => /lib/libncurses.so.4 (0x40170000)
libm.so.6 => /lib/libm.so.6 (0x401b2000)
libc.so.6 => /lib/libc.so.6 (0x401cf000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00000000)
Cheers,
aj
[0] man 1 strip.
--
Anthony Towns <aj at humbug.org.au> <http://azure.humbug.org.au/~aj/>
I don't speak for anyone save myself. PGP encrypted mail preferred.
``There's nothing worse than people with a clue.
They're always disagreeing with you.''
-- Andrew Over
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 434 bytes
Desc: not available
URL: <http://lists.humbug.org.au/pipermail/general/attachments/19990716/d287ac3e/attachment.sig>
More information about the General
mailing list