Use -fvisibility=hidden to build libc_gdtoa.
Bug: 12177745 Change-Id: Ia4ac71e1a3a237e764c809cc591622f8952ed642
This commit is contained in:
parent
c5eea6d386
commit
cce36c1878
@ -653,6 +653,7 @@ LOCAL_SRC_FILES_32 := $(libc_upstream_openbsd_gdtoa_src_files_32)
|
|||||||
LOCAL_SRC_FILES_64 := $(libc_upstream_openbsd_gdtoa_src_files_64)
|
LOCAL_SRC_FILES_64 := $(libc_upstream_openbsd_gdtoa_src_files_64)
|
||||||
LOCAL_CFLAGS := \
|
LOCAL_CFLAGS := \
|
||||||
$(libc_common_cflags) \
|
$(libc_common_cflags) \
|
||||||
|
-fvisibility=hidden \
|
||||||
-I$(LOCAL_PATH)/upstream-openbsd/android/include \
|
-I$(LOCAL_PATH)/upstream-openbsd/android/include \
|
||||||
-I$(LOCAL_PATH)/upstream-openbsd/lib/libc/include \
|
-I$(LOCAL_PATH)/upstream-openbsd/lib/libc/include \
|
||||||
-include openbsd-compat.h \
|
-include openbsd-compat.h \
|
||||||
|
@ -65,9 +65,10 @@ extern unsigned long long strtoull(const char *, char **, int);
|
|||||||
extern int posix_memalign(void **memptr, size_t alignment, size_t size);
|
extern int posix_memalign(void **memptr, size_t alignment, size_t size);
|
||||||
|
|
||||||
extern double atof(const char*);
|
extern double atof(const char*);
|
||||||
extern double strtod(const char*, char**);
|
|
||||||
extern float strtof(const char*, char**);
|
extern double strtod(const char*, char**) __LIBC_ABI_PUBLIC__;
|
||||||
extern long double strtold(const char*, char**);
|
extern float strtof(const char*, char**) __LIBC_ABI_PUBLIC__;
|
||||||
|
extern long double strtold(const char*, char**) __LIBC_ABI_PUBLIC__;
|
||||||
|
|
||||||
extern int atoi(const char*) __purefunc;
|
extern int atoi(const char*) __purefunc;
|
||||||
extern long atol(const char*) __purefunc;
|
extern long atol(const char*) __purefunc;
|
||||||
|
@ -61,24 +61,11 @@
|
|||||||
#define __SECTIONSTRING(_sec, _str) \
|
#define __SECTIONSTRING(_sec, _str) \
|
||||||
__asm__(".section " #_sec "\n\t.asciz \"" _str "\"\n\t.previous")
|
__asm__(".section " #_sec "\n\t.asciz \"" _str "\"\n\t.previous")
|
||||||
|
|
||||||
/* GCC visibility helper macro */
|
/* Used to tag non-static symbols that are private and never exposed by the shared library. */
|
||||||
/* This must be used to tag non-static functions that are private, i.e.
|
#define __LIBC_HIDDEN__ __attribute__((visibility ("hidden")))
|
||||||
* never exposed by the shared library. */
|
|
||||||
#define __LIBC_HIDDEN__ \
|
|
||||||
__attribute__ ((visibility ("hidden")))
|
|
||||||
|
|
||||||
/* This must be used to tag non-static functions that are public, i.e.
|
/* Used to tag non-static symbols that are public and exposed by the shared library. */
|
||||||
* exposed by the shared library, and part of the stable NDK ABI */
|
#define __LIBC_ABI_PUBLIC__ __attribute__((visibility ("default")))
|
||||||
#define __LIBC_ABI_PUBLIC__ \
|
|
||||||
__attribute__ ((visibility ("default")))
|
|
||||||
|
|
||||||
/* This must be used to tag non-static functions that must be exported
|
|
||||||
* by the shared library, but whose implementation is private to the
|
|
||||||
* platform. For now this is equivalent to __LIBC_ABI_PUBLIC__, but we
|
|
||||||
* may want to change this later.
|
|
||||||
*/
|
|
||||||
#define __LIBC_ABI_PRIVATE__ \
|
|
||||||
__attribute__ ((visibility ("default")))
|
|
||||||
|
|
||||||
#define __IDSTRING(_n,_s) __SECTIONSTRING(.ident,_s)
|
#define __IDSTRING(_n,_s) __SECTIONSTRING(.ident,_s)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user