aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2010-10-11 07:13:10 -0700
committerAndroid Code Review <code-review@android.com>2010-10-11 07:13:10 -0700
commitf67e5211e045af1b12f646448a5a35f96ba5e8f1 (patch)
treeebec5c38c4f219d7516f13b65caca22c8ab34733
parent66ad34293b84d979cae5ffda4b3b90b746127ebb (diff)
parent9d16a79b18f43faebbe8155dbc14896e9b7d8a2e (diff)
downloadbionic-f67e5211e045af1b12f646448a5a35f96ba5e8f1.tar.gz
Merge "Hide the symbol of helper function __libc_android_abort"
-rw-r--r--libc/include/sys/cdefs_elf.h4
-rw-r--r--libc/unistd/abort.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/libc/include/sys/cdefs_elf.h b/libc/include/sys/cdefs_elf.h
index e051b1d0e..1e5747010 100644
--- a/libc/include/sys/cdefs_elf.h
+++ b/libc/include/sys/cdefs_elf.h
@@ -95,6 +95,10 @@
__asm__(".section _sec\n\t.asciz _str\n\t.previous")
#endif
+/* GCC visibility helper macro */
+#define __LIBC_HIDDEN__ \
+ __attribute__ ((visibility ("hidden")))
+
#define __IDSTRING(_n,_s) __SECTIONSTRING(.ident,_s)
#define __RCSID(_s) __IDSTRING(rcsid,_s)
diff --git a/libc/unistd/abort.c b/libc/unistd/abort.c
index 3e3aab0ea..8b8659b8b 100644
--- a/libc/unistd/abort.c
+++ b/libc/unistd/abort.c
@@ -40,7 +40,7 @@
__libc_android_log_print(ANDROID_LOG_DEBUG, "libc-abort", (format), ##__VA_ARGS__ )
#ifdef __arm__
-void
+__LIBC_HIDDEN__ void
__libc_android_abort(void)
#else
void