aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/libgcc
diff options
context:
space:
mode:
authorBen Cheng <bccheng@google.com>2014-04-14 20:44:56 -0700
committerAndrew Hsieh <andrewhsieh@google.com>2014-04-22 16:16:02 -0700
commit26a5e0c0f1417896741ed8532729c2ad085c6338 (patch)
tree5f9a62b42bfb8c4ac20b1e56a27daf11481fe3f8 /gcc-4.9/libgcc
parentb1e9b7655026c246b3faf7b6aa7f642668b740c2 (diff)
downloadtoolchain_gcc-26a5e0c0f1417896741ed8532729c2ad085c6338.tar.gz
toolchain_gcc-26a5e0c0f1417896741ed8532729c2ad085c6338.tar.bz2
toolchain_gcc-26a5e0c0f1417896741ed8532729c2ad085c6338.zip
[4.9] Maintain default visibility for helper functions in libgcc.a.
See 68330d08ea4b3e32dbadcfae109508f386177e68 Change-Id: Icd2f323e66d689f62b61c9819b983f4a3bb13984
Diffstat (limited to 'gcc-4.9/libgcc')
-rw-r--r--gcc-4.9/libgcc/Makefile.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.9/libgcc/Makefile.in b/gcc-4.9/libgcc/Makefile.in
index e86e98de4..7fe4aae51 100644
--- a/gcc-4.9/libgcc/Makefile.in
+++ b/gcc-4.9/libgcc/Makefile.in
@@ -368,10 +368,20 @@ ifeq ($(enable_shared),yes)
endif
endif
+ifneq ($(enable_shared),yes)
+# Some prebuilt libraries for Android link libc.so before libgcc.a, and they
+# rely on libgcc.a to provide those symbols with default visibility to resolve
+# them eventually. The linker order has been fixed in JB maintain releases but
+# may take a while to trickle down to partners to refresh their prebuilt
+# libraries. Therefore we need to maintain the same visibility as older GCC
+# for now.
+vis_hide =
+else
# For -fvisibility=hidden. We need both a -fvisibility=hidden on
# the command line, and a #define to prevent libgcc2.h etc from
# overriding that with #pragmas.
vis_hide = @vis_hide@
+endif
ifneq (,$(vis_hide))