libc: keep __libc_init weak definition private

This commit is contained in:
Giacomo Tesio 2017-04-21 23:58:06 +02:00
parent 4142b70d32
commit a1b4085b7b
2 changed files with 3 additions and 3 deletions

View File

@ -636,9 +636,6 @@ extern int jehanne_dirmodefmt(Fmt*);
# define NPRIVATES 16
#endif
/* can be overwritten to do anything before calling main */
extern void __libc_init(int argc, char *argv[]) __attribute__((weak, noreturn));
/* compiler directives on plan 9 */
#define SET(x) ((x)=0)
#define USED(x) if(x){}else{}

View File

@ -23,6 +23,9 @@ extern int _nprivates;
static void call_main(int argc, char *argv[]) __attribute__((noreturn));
/* can be overwritten to do anything before calling main */
extern void __libc_init(int argc, char *argv[]) __attribute__((weak, noreturn));
void
__jehanne_libc_init(int argc, char *argv[])
{