Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame] | 1 | # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | # This script makes all JNI exported symbols local, to prevent the JVM from |
| 6 | # being able to find them, enforcing use of manual JNI function registration. |
| 7 | # This is used for all Android binaries by default, unless they explicitly state |
| 8 | # that they want JNI exported symbols to remain visible, as we need to ensure |
| 9 | # the manual registration path is correct to maintain compatibility with the |
| 10 | # crazy linker. |
| 11 | # Check ld version script manual: |
| 12 | # https://sourceware.org/binutils/docs-2.24/ld/VERSION.html#VERSION |
| 13 | |
| 14 | { |
| 15 | local: |
| 16 | Java_*; |
| 17 | }; |