Generate libdl.so per-architecture version script
Bug: http://b/24767418 Change-Id: I3d5775ba44d4c8e7fc5f2fbebae10e022100f1e2
This commit is contained in:
@@ -15,12 +15,19 @@ include $(CLEAR_VARS)
|
||||
#
|
||||
# DO NOT REMOVE --exclude-libs!
|
||||
|
||||
LOCAL_LDFLAGS := -Wl,--exclude-libs=libgcc.a -Wl,--version-script=$(LOCAL_PATH)/libdl.map
|
||||
LOCAL_LDFLAGS := -Wl,--exclude-libs=libgcc.a
|
||||
|
||||
# for x86, exclude libgcc_eh.a for the same reasons as above
|
||||
LOCAL_LDFLAGS_x86 := -Wl,--exclude-libs=libgcc_eh.a
|
||||
LOCAL_LDFLAGS_x86_64 := $(LOCAL_LDFLAGS_x86)
|
||||
|
||||
LOCAL_LDFLAGS_arm += -Wl,--version-script=$(LOCAL_PATH)/libdl.arm.map
|
||||
LOCAL_LDFLAGS_arm64 += -Wl,--version-script=$(LOCAL_PATH)/libdl.arm64.map
|
||||
LOCAL_LDFLAGS_mips += -Wl,--version-script=$(LOCAL_PATH)/libdl.mips.map
|
||||
LOCAL_LDFLAGS_mips64 += -Wl,--version-script=$(LOCAL_PATH)/libdl.mips64.map
|
||||
LOCAL_LDFLAGS_x86 += -Wl,--version-script=$(LOCAL_PATH)/libdl.x86.map
|
||||
LOCAL_LDFLAGS_x86_64 += -Wl,--version-script=$(LOCAL_PATH)/libdl.x86_64.map
|
||||
|
||||
LOCAL_SRC_FILES:= libdl.c
|
||||
LOCAL_CFLAGS := -Wall -Wextra -Wunused -Werror
|
||||
LOCAL_CXX_STL := none
|
||||
|
||||
23
libdl/libdl.arm.map
Normal file
23
libdl/libdl.arm.map
Normal file
@@ -0,0 +1,23 @@
|
||||
# Generated by genversionscripts.py. Do not edit.
|
||||
|
||||
LIBC {
|
||||
global:
|
||||
android_dlopen_ext;
|
||||
dl_iterate_phdr;
|
||||
dl_unwind_find_exidx; # arm
|
||||
dladdr;
|
||||
dlclose;
|
||||
dlerror;
|
||||
dlopen;
|
||||
dlsym;
|
||||
local:
|
||||
*;
|
||||
};
|
||||
|
||||
LIBC_PRIVATE {
|
||||
global:
|
||||
android_get_application_target_sdk_version;
|
||||
android_set_application_target_sdk_version;
|
||||
android_get_LD_LIBRARY_PATH;
|
||||
android_update_LD_LIBRARY_PATH;
|
||||
} LIBC;
|
||||
22
libdl/libdl.arm64.map
Normal file
22
libdl/libdl.arm64.map
Normal file
@@ -0,0 +1,22 @@
|
||||
# Generated by genversionscripts.py. Do not edit.
|
||||
|
||||
LIBC {
|
||||
global:
|
||||
android_dlopen_ext;
|
||||
dl_iterate_phdr;
|
||||
dladdr;
|
||||
dlclose;
|
||||
dlerror;
|
||||
dlopen;
|
||||
dlsym;
|
||||
local:
|
||||
*;
|
||||
};
|
||||
|
||||
LIBC_PRIVATE {
|
||||
global:
|
||||
android_get_application_target_sdk_version;
|
||||
android_set_application_target_sdk_version;
|
||||
android_get_LD_LIBRARY_PATH;
|
||||
android_update_LD_LIBRARY_PATH;
|
||||
} LIBC;
|
||||
@@ -18,9 +18,7 @@ LIBC {
|
||||
global:
|
||||
android_dlopen_ext;
|
||||
dl_iterate_phdr;
|
||||
# begin arm-only
|
||||
dl_unwind_find_exidx;
|
||||
# end arm-only
|
||||
dl_unwind_find_exidx; # arm
|
||||
dladdr;
|
||||
dlclose;
|
||||
dlerror;
|
||||
22
libdl/libdl.mips.map
Normal file
22
libdl/libdl.mips.map
Normal file
@@ -0,0 +1,22 @@
|
||||
# Generated by genversionscripts.py. Do not edit.
|
||||
|
||||
LIBC {
|
||||
global:
|
||||
android_dlopen_ext;
|
||||
dl_iterate_phdr;
|
||||
dladdr;
|
||||
dlclose;
|
||||
dlerror;
|
||||
dlopen;
|
||||
dlsym;
|
||||
local:
|
||||
*;
|
||||
};
|
||||
|
||||
LIBC_PRIVATE {
|
||||
global:
|
||||
android_get_application_target_sdk_version;
|
||||
android_set_application_target_sdk_version;
|
||||
android_get_LD_LIBRARY_PATH;
|
||||
android_update_LD_LIBRARY_PATH;
|
||||
} LIBC;
|
||||
22
libdl/libdl.mips64.map
Normal file
22
libdl/libdl.mips64.map
Normal file
@@ -0,0 +1,22 @@
|
||||
# Generated by genversionscripts.py. Do not edit.
|
||||
|
||||
LIBC {
|
||||
global:
|
||||
android_dlopen_ext;
|
||||
dl_iterate_phdr;
|
||||
dladdr;
|
||||
dlclose;
|
||||
dlerror;
|
||||
dlopen;
|
||||
dlsym;
|
||||
local:
|
||||
*;
|
||||
};
|
||||
|
||||
LIBC_PRIVATE {
|
||||
global:
|
||||
android_get_application_target_sdk_version;
|
||||
android_set_application_target_sdk_version;
|
||||
android_get_LD_LIBRARY_PATH;
|
||||
android_update_LD_LIBRARY_PATH;
|
||||
} LIBC;
|
||||
22
libdl/libdl.x86.map
Normal file
22
libdl/libdl.x86.map
Normal file
@@ -0,0 +1,22 @@
|
||||
# Generated by genversionscripts.py. Do not edit.
|
||||
|
||||
LIBC {
|
||||
global:
|
||||
android_dlopen_ext;
|
||||
dl_iterate_phdr;
|
||||
dladdr;
|
||||
dlclose;
|
||||
dlerror;
|
||||
dlopen;
|
||||
dlsym;
|
||||
local:
|
||||
*;
|
||||
};
|
||||
|
||||
LIBC_PRIVATE {
|
||||
global:
|
||||
android_get_application_target_sdk_version;
|
||||
android_set_application_target_sdk_version;
|
||||
android_get_LD_LIBRARY_PATH;
|
||||
android_update_LD_LIBRARY_PATH;
|
||||
} LIBC;
|
||||
22
libdl/libdl.x86_64.map
Normal file
22
libdl/libdl.x86_64.map
Normal file
@@ -0,0 +1,22 @@
|
||||
# Generated by genversionscripts.py. Do not edit.
|
||||
|
||||
LIBC {
|
||||
global:
|
||||
android_dlopen_ext;
|
||||
dl_iterate_phdr;
|
||||
dladdr;
|
||||
dlclose;
|
||||
dlerror;
|
||||
dlopen;
|
||||
dlsym;
|
||||
local:
|
||||
*;
|
||||
};
|
||||
|
||||
LIBC_PRIVATE {
|
||||
global:
|
||||
android_get_application_target_sdk_version;
|
||||
android_set_application_target_sdk_version;
|
||||
android_get_LD_LIBRARY_PATH;
|
||||
android_update_LD_LIBRARY_PATH;
|
||||
} LIBC;
|
||||
Reference in New Issue
Block a user