Fix CtsJniTestCases

The linker_namespaces test need android_get_LD_LIBRARY_PATH function.

Bug: http://b/129479780
Test: atest CtsJniTestCases
Change-Id: Iba5f74e1e4b5b1de173150120293102524db2507
This commit is contained in:
dimitry 2019-03-29 05:34:33 +01:00
parent d7270b2587
commit 91b0c68009
2 changed files with 9 additions and 0 deletions

View file

@ -24,6 +24,9 @@
extern "C" {
__attribute__((__weak__, visibility("default")))
void __loader_android_get_LD_LIBRARY_PATH(char* buffer, size_t buffer_size);
__attribute__((__weak__, visibility("default")))
void* __loader_dlopen(const char* filename, int flags, const void* caller_addr);
@ -70,6 +73,11 @@ __attribute__((__weak__, visibility("default")))
int __loader_android_get_application_target_sdk_version();
// Proxy calls to bionic loader
__attribute__((__weak__))
void android_get_LD_LIBRARY_PATH(char* buffer, size_t buffer_size) {
__loader_android_get_LD_LIBRARY_PATH(buffer, buffer_size);
}
__attribute__((__weak__))
void* dlopen(const char* filename, int flag) {
const void* caller_addr = __builtin_return_address(0);

View file

@ -43,5 +43,6 @@ LIBC_OMR1 { # introduced=27
LIBC_PLATFORM {
global:
android_get_LD_LIBRARY_PATH;
__cfi_init;
} LIBC_OMR1;