Use default visibility for __assert and __assert2.
We will change the build file to link static libraries before shared
libraries soon. Without this change the linker will complain their
visibilities.
BUG: 8247455
Change-Id: Iec97be4b42114b5a28174a03f9d8017e85b28668
diff --git a/src/assert.c b/src/assert.c
index b315422..0f88e59 100644
--- a/src/assert.c
+++ b/src/assert.c
@@ -19,6 +19,8 @@
#include <utils/Log.h>
+#pragma GCC visibility push(default)
+
void __assert(const char *file, int line, const char *failedexpr)
{
LOG_ALWAYS_FATAL("assertion \"%s\" failed: file \"%s\", line %d", failedexpr, file, line);
@@ -31,3 +33,5 @@
failedexpr, file, line, func);
// not reached
}
+
+#pragma GCC visibility pop