OSDN Git Service

ART: Set default visibility to protected
authorAndreas Gampe <agampe@google.com>
Wed, 13 Aug 2014 07:15:43 +0000 (00:15 -0700)
committerAndreas Gampe <agampe@google.com>
Tue, 19 Aug 2014 19:27:00 +0000 (12:27 -0700)
commit29b3841ad8c1c18ee7ddd2d8cab85806b3d62eaa
treec0d981a1c1d045d0e7c147c26daebfcaa32c1dc4
parent7df1754ae17acd891995159fc50f3bb176b770dd
ART: Set default visibility to protected

Set default visibility of symbols to protected. This allows the
linker to optimize internal calls and helps avoid plt calls.

Make almost all assembly stubs hidden, as -fvisibility does not
seem to apply to them. Change the assembly tests accordingly. Also
allows to clean up previous hacks to avoid plt calls.

Bug: 16974467

(cherry picked from commit 235e77bd9f19e4faefda109be40f8744f3a66f40)

Change-Id: I9030dcf6116251f434f94a2b08e56e12085af652
18 files changed:
build/Android.common_build.mk
runtime/arch/arm/arm_sdiv.S
runtime/arch/arm/asm_support_arm.S
runtime/arch/arm/portable_entrypoints_arm.S
runtime/arch/arm/quick_entrypoints_arm.S
runtime/arch/arm64/asm_support_arm64.S
runtime/arch/arm64/portable_entrypoints_arm64.S
runtime/arch/arm64/quick_entrypoints_arm64.S
runtime/arch/memcmp16.cc
runtime/arch/memcmp16.h
runtime/arch/memcmp16_test.cc
runtime/arch/stub_test.cc
runtime/arch/x86/asm_support_x86.S
runtime/arch/x86/portable_entrypoints_x86.S
runtime/arch/x86/quick_entrypoints_x86.S
runtime/arch/x86_64/asm_support_x86_64.S
runtime/arch/x86_64/portable_entrypoints_x86_64.S
runtime/arch/x86_64/quick_entrypoints_x86_64.S