Browse Source

expand comment a little more as to why _stdio_init() is weak thanks to mjn3

Mike Frysinger 19 years ago
parent
commit
7502d7850f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libc/misc/internals/__uClibc_main.c

+ 2 - 0
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();