Re: Announce: initrd-tftp 0.1

From: Philip Blundell (Philip.Blundell@pobox.com)
Date: Sun Jan 09 2000 - 15:18:13 EST


>Even if you don't want them, you end up linking in malloc, stdio, and other
>large chunks of useless stuff because the init/shutdown code (crt*.o) needs
>to initialize these subsystems. Some clever changes to libc would
>dramatically improve this situation, but it would take some work. Someday,
>perhaps I'll have a chance...

You can make things quite a lot better by including these lines in your
program:

exit() { }
abort() { }
atexit() { }
void *__libc_stack_end;

The latter is really a granularity problem with libc but the first three are
probably to be expected. There's no easy way to avoid that excess code being
linked in without imposing additional runtime overhead.

p.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:15 EST