Explorar o código

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

Mike Frysinger %!s(int64=19) %!d(string=hai) anos
pai
achega
7502d7850f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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();