From 7502d7850f53059f341ec07e860b6297157e817c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 6 May 2006 04:32:07 +0000 Subject: expand comment a little more as to why _stdio_init() is weak thanks to mjn3 --- libc/misc/internals/__uClibc_main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libc') diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c index 41848775f..ae595cf4e 100644 --- a/libc/misc/internals/__uClibc_main.c +++ b/libc/misc/internals/__uClibc_main.c @@ -227,6 +227,8 @@ void __uClibc_init(void) /* * Initialize stdio here. In the static library case, this will * be bypassed if not needed because of the weak alias above. + * Thus we get a nice size savings because the stdio functions + * won't be pulled into the final static binary unless used. */ if (likely(_stdio_init != NULL)) _stdio_init(); -- cgit v1.2.3