Fix visibility for a bunch more symbols.

Bug: 11156955
Bug: 15291317
Change-Id: I664f25cce7c17085a101d6593d8e01525a1f6a90
This commit is contained in:
Elliott Hughes 2014-07-14 14:41:47 -07:00
parent 673bff01ae
commit a167eef548
5 changed files with 16 additions and 14 deletions

View file

@ -34,7 +34,7 @@
__BEGIN_DECLS
int __bionic_name_mem(void* addr, size_t len, const char* name);
__LIBC_HIDDEN__ int __bionic_name_mem(void* addr, size_t len, const char* name);
__END_DECLS

View file

@ -49,14 +49,7 @@
*/
__LIBC_HIDDEN__ int __srget(FILE*);
__LIBC_HIDDEN__ int __swbuf(int, FILE*);
/*
* The NDK apparently includes an android_support.a library that
* refers to __srefill in its copy of the vsnprintf implementation.
*/
/* TODO(LP64): __LIBC_HIDDEN__ int __srefill(FILE*);*/
/* http://b/15291317: the LP64 NDK needs to be fixed to remove that cruft. */
__LIBC_ABI_PUBLIC__ int __srefill(FILE*);
__LIBC_HIDDEN__ int __srefill(FILE*);
#else
__LIBC_ABI_PUBLIC__ int __srget(FILE*);
__LIBC_ABI_PUBLIC__ int __swbuf(int, FILE*);

View file

@ -17,6 +17,4 @@
#ifndef _BIONIC_FREEBSD_NAMESPACE_H_included
#define _BIONIC_FREEBSD_NAMESPACE_H_included
__attribute__((visibility("hidden"))) char* _mktemp(char*);
#endif

View file

@ -22,4 +22,7 @@
#undef __weak_alias
#endif
__LIBC_HIDDEN__ int __res_enable_mt(void);
__LIBC_HIDDEN__ int __res_disable_mt(void);
#endif

View file

@ -37,9 +37,17 @@
#define issetugid() 0
/* LP32 NDK ctype.h contained references to these. */
__LIBC64_HIDDEN__ extern const short *_tolower_tab_;
__LIBC64_HIDDEN__ extern const short *_toupper_tab_;
__LIBC64_HIDDEN__ extern const short* _tolower_tab_;
__LIBC64_HIDDEN__ extern const short* _toupper_tab_;
__LIBC_HIDDEN__ extern struct atexit *__atexit;
__LIBC_HIDDEN__ extern struct atexit* __atexit;
__LIBC_HIDDEN__ extern const char _C_ctype_[];
__LIBC_HIDDEN__ extern const short _C_toupper_[];
__LIBC_HIDDEN__ extern const short _C_tolower_[];
__LIBC_HIDDEN__ extern char* __findenv(const char*, int, int*);
__LIBC_HIDDEN__ extern char* _mktemp(char*);
/* TODO: hide this when android_support.a is fixed (http://b/16298580).*/
/*__LIBC_HIDDEN__*/ extern int __isthreaded;
#endif