libc: keep __libc_init weak definition private
This commit is contained in:
parent
4142b70d32
commit
a1b4085b7b
@ -636,9 +636,6 @@ extern int jehanne_dirmodefmt(Fmt*);
|
|||||||
# define NPRIVATES 16
|
# define NPRIVATES 16
|
||||||
#endif
|
#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 */
|
/* compiler directives on plan 9 */
|
||||||
#define SET(x) ((x)=0)
|
#define SET(x) ((x)=0)
|
||||||
#define USED(x) if(x){}else{}
|
#define USED(x) if(x){}else{}
|
||||||
|
@ -23,6 +23,9 @@ extern int _nprivates;
|
|||||||
|
|
||||||
static void call_main(int argc, char *argv[]) __attribute__((noreturn));
|
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
|
void
|
||||||
__jehanne_libc_init(int argc, char *argv[])
|
__jehanne_libc_init(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user