Giant executables.. what am I doing wrong?

Michiel Buddingh' ajuin+mail@stack.nl
Tue Oct 15 05:20:00 GMT 2002


On Tue, Oct 15, 2002 at 08:12:12AM -0400, Joshua Nye wrote:
> If you run 'nm' on your pre-stripped executable you will
> see all the compiled in functions from the C library and
> any other libraries. When you do a static compile it 
> doesn't just include only the needed function(s), but the 
> entire C library .a file.

I see. But that's a bit ridiculous, don't you agree? Are
you sure there isn't a way to link only the functions my
program needs, rather than all the functions in the library?

-- 
		-- Michiel



More information about the Gcc-help mailing list