浏览代码

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

Mike Frysinger 19 年之前
父节点
当前提交
7502d7850f
共有 1 个文件被更改,包括 2 次插入0 次删除
  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();