Descriptionandroid: Hide JNI exports by default.
Hide JNI exported functions in Android binaries by default, unless the
target in question has explicitly set "use_native_jni_exports" to
indicate that it relies on the JVM's automatic symbol lookup mechanism.
The functions are simply demoted to hidden visibility; the code will
remain unless the linker determines that it is unreferenced and strips
it via --gc-sections.
This ensures that binaries by default actually test the explicit JNI
registration codepaths, which are required for compatibility with the
crazy linker, while still allowing binaries that do not require crazy
linker compatibility to choose to use the automatic mechanism in future.
BUG=442327
Committed: https://crrev.com/9d90d85f73ca46847047ccbda270f25b637ccc86
Cr-Commit-Position: refs/heads/master@{#316896}
Patch Set 1 #Patch Set 2 : Fix AOSP build, fix GL functor library, and generally make it nicer #Patch Set 3 : Add missing comma. #Patch Set 4 : Use a blacklist instead of a whitelist #
Total comments: 2
Patch Set 5 : Added gn support #
Messages
Total messages: 34 (7 generated)
|