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:
parent
d7270b2587
commit
91b0c68009
|
@ -24,6 +24,9 @@
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
|
__attribute__((__weak__, visibility("default")))
|
||||||
|
void __loader_android_get_LD_LIBRARY_PATH(char* buffer, size_t buffer_size);
|
||||||
|
|
||||||
__attribute__((__weak__, visibility("default")))
|
__attribute__((__weak__, visibility("default")))
|
||||||
void* __loader_dlopen(const char* filename, int flags, const void* caller_addr);
|
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();
|
int __loader_android_get_application_target_sdk_version();
|
||||||
|
|
||||||
// Proxy calls to bionic loader
|
// 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__))
|
__attribute__((__weak__))
|
||||||
void* dlopen(const char* filename, int flag) {
|
void* dlopen(const char* filename, int flag) {
|
||||||
const void* caller_addr = __builtin_return_address(0);
|
const void* caller_addr = __builtin_return_address(0);
|
||||||
|
|
|
@ -43,5 +43,6 @@ LIBC_OMR1 { # introduced=27
|
||||||
|
|
||||||
LIBC_PLATFORM {
|
LIBC_PLATFORM {
|
||||||
global:
|
global:
|
||||||
|
android_get_LD_LIBRARY_PATH;
|
||||||
__cfi_init;
|
__cfi_init;
|
||||||
} LIBC_OMR1;
|
} LIBC_OMR1;
|
||||||
|
|
Loading…
Reference in New Issue