diff --git a/src/env/__libc_start_main.c b/src/env/__libc_start_main.c index 10e559096a703202070da2eb95157487f588b937..f6f3b14a471bfb8f7346a98d7c5f008c6ec5ba0c 100644 --- a/src/env/__libc_start_main.c +++ b/src/env/__libc_start_main.c @@ -20,9 +20,6 @@ weak_alias(dummy1, __init_ssp); #define AUX_CNT 38 -extern size_t __hwcap, __sysinfo; -extern char *__progname, *__progname_full; - #ifndef SHARED static #endif diff --git a/src/internal/libc.h b/src/internal/libc.h index 00d1b41acc03d13f57e3ba8ed828b43173477605..51ee1860cd305793ed912dfc8933eef0aa7b0684 100644 --- a/src/internal/libc.h +++ b/src/internal/libc.h @@ -28,8 +28,6 @@ struct __libc { struct __locale_struct global_locale; }; -extern size_t __hwcap; - #ifndef PAGE_SIZE #define PAGE_SIZE libc.page_size #endif @@ -43,6 +41,9 @@ extern size_t __hwcap; extern struct __libc __libc ATTR_LIBC_VISIBILITY; #define libc __libc +extern size_t __hwcap ATTR_LIBC_VISIBILITY; +extern size_t __sysinfo ATTR_LIBC_VISIBILITY; +extern char *__progname, *__progname_full; /* Designed to avoid any overhead in non-threaded processes */ void __lock(volatile int *) ATTR_LIBC_VISIBILITY;