提交 f203b351 编写于 作者: R Rich Felker

fix inconsistent visibility for __hwcap and __sysinfo symbols

these are used as hidden by asm files (and such use is the whole
reason they exist), but their actual definitions were not hidden.
上级 3e827b7e
...@@ -20,9 +20,6 @@ weak_alias(dummy1, __init_ssp); ...@@ -20,9 +20,6 @@ weak_alias(dummy1, __init_ssp);
#define AUX_CNT 38 #define AUX_CNT 38
extern size_t __hwcap, __sysinfo;
extern char *__progname, *__progname_full;
#ifndef SHARED #ifndef SHARED
static static
#endif #endif
......
...@@ -28,8 +28,6 @@ struct __libc { ...@@ -28,8 +28,6 @@ struct __libc {
struct __locale_struct global_locale; struct __locale_struct global_locale;
}; };
extern size_t __hwcap;
#ifndef PAGE_SIZE #ifndef PAGE_SIZE
#define PAGE_SIZE libc.page_size #define PAGE_SIZE libc.page_size
#endif #endif
...@@ -43,6 +41,9 @@ extern size_t __hwcap; ...@@ -43,6 +41,9 @@ extern size_t __hwcap;
extern struct __libc __libc ATTR_LIBC_VISIBILITY; extern struct __libc __libc ATTR_LIBC_VISIBILITY;
#define libc __libc #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 */ /* Designed to avoid any overhead in non-threaded processes */
void __lock(volatile int *) ATTR_LIBC_VISIBILITY; void __lock(volatile int *) ATTR_LIBC_VISIBILITY;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册