Merge "Revert "Remove remaining ndk_cruft from LP64 platforms""
This commit is contained in:
commit
52a05f3ce7
12 changed files with 3591 additions and 17 deletions
|
@ -1387,8 +1387,11 @@ LOCAL_ADDITIONAL_DEPENDENCIES := \
|
|||
$(LOCAL_PATH)/libc.x86.map \
|
||||
$(LOCAL_PATH)/libc.x86_64.map \
|
||||
$(LOCAL_PATH)/libc.arm.brillo.map \
|
||||
$(LOCAL_PATH)/libc.arm64.brillo.map \
|
||||
$(LOCAL_PATH)/libc.mips.brillo.map \
|
||||
$(LOCAL_PATH)/libc.mips64.brillo.map \
|
||||
$(LOCAL_PATH)/libc.x86.brillo.map \
|
||||
$(LOCAL_PATH)/libc.x86_64.brillo.map \
|
||||
|
||||
# Leave the symbols in the shared library so that stack unwinders can produce
|
||||
# meaningful name resolution.
|
||||
|
@ -1424,15 +1427,17 @@ ifdef BRILLO
|
|||
LOCAL_LDFLAGS_arm += -Wl,--version-script,$(LOCAL_PATH)/libc.arm.brillo.map
|
||||
LOCAL_LDFLAGS_mips += -Wl,--version-script,$(LOCAL_PATH)/libc.mips.brillo.map
|
||||
LOCAL_LDFLAGS_x86 += -Wl,--version-script,$(LOCAL_PATH)/libc.x86.brillo.map
|
||||
LOCAL_LDFLAGS_arm64 += -Wl,--version-script,$(LOCAL_PATH)/libc.arm64.brillo.map
|
||||
LOCAL_LDFLAGS_mips64 += -Wl,--version-script,$(LOCAL_PATH)/libc.mips64.brillo.map
|
||||
LOCAL_LDFLAGS_x86_64 += -Wl,--version-script,$(LOCAL_PATH)/libc.x86_64.brillo.map
|
||||
else
|
||||
LOCAL_LDFLAGS_arm += -Wl,--version-script,$(LOCAL_PATH)/libc.arm.map
|
||||
LOCAL_LDFLAGS_mips += -Wl,--version-script,$(LOCAL_PATH)/libc.mips.map
|
||||
LOCAL_LDFLAGS_x86 += -Wl,--version-script,$(LOCAL_PATH)/libc.x86.map
|
||||
endif
|
||||
|
||||
LOCAL_LDFLAGS_arm64 += -Wl,--version-script,$(LOCAL_PATH)/libc.arm64.map
|
||||
LOCAL_LDFLAGS_mips64 += -Wl,--version-script,$(LOCAL_PATH)/libc.mips64.map
|
||||
LOCAL_LDFLAGS_x86_64 += -Wl,--version-script,$(LOCAL_PATH)/libc.x86_64.map
|
||||
endif
|
||||
|
||||
# We'd really like to do this for all architectures, but since this wasn't done
|
||||
# before, these symbols must continue to be exported on LP32 for binary
|
||||
|
|
|
@ -49,8 +49,11 @@
|
|||
|
||||
extern "C" {
|
||||
|
||||
// Brillo and LP64 don't need to support any legacy cruft.
|
||||
#if !defined(__BRILLO__) && !defined(__LP64__)
|
||||
// Brillo doesn't need to support any legacy cruft.
|
||||
#if !defined(__BRILLO__)
|
||||
|
||||
// Most of the cruft is only for 32-bit Android targets.
|
||||
#if !defined(__LP64__)
|
||||
|
||||
// These were accidentally declared in <unistd.h> because we stupidly used to inline
|
||||
// getpagesize() and __getpageshift(). Needed for backwards compatibility with old NDK apps.
|
||||
|
@ -364,6 +367,8 @@ long __set_errno(int n) {
|
|||
return __set_errno_internal(n);
|
||||
}
|
||||
|
||||
#endif // !defined(__LP64__)
|
||||
|
||||
// This was never implemented in bionic, only needed for ABI compatibility with the NDK.
|
||||
// In the M time frame, over 1000 apps have a reference to this!
|
||||
void endpwent() { }
|
||||
|
@ -387,6 +392,6 @@ int dlmalloc_trim(size_t pad) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif // !defined(__BRILLO__) && !defined (__LP64__)
|
||||
#endif // !defined(__BRILLO__)
|
||||
|
||||
} // extern "C"
|
||||
|
|
|
@ -383,7 +383,7 @@ LIBC {
|
|||
dup3;
|
||||
duplocale;
|
||||
endmntent;
|
||||
endpwent; # arm x86 mips nobrillo
|
||||
endpwent; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
endservent;
|
||||
endutent;
|
||||
environ;
|
||||
|
@ -1447,8 +1447,8 @@ LIBC_PRIVATE {
|
|||
_Unwind_VRS_Set; # arm
|
||||
atexit; # arm
|
||||
dlmalloc; # arm x86 mips nobrillo
|
||||
dlmalloc_inspect_all; # arm x86 mips nobrillo
|
||||
dlmalloc_trim; # arm x86 mips nobrillo
|
||||
dlmalloc_inspect_all; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
dlmalloc_trim; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
dlmalloc_usable_size; # arm x86 mips nobrillo
|
||||
gMallocLeakZygoteChild;
|
||||
SHA1Final; # arm x86 mips
|
||||
|
|
1185
libc/libc.arm64.brillo.map
Normal file
1185
libc/libc.arm64.brillo.map
Normal file
File diff suppressed because it is too large
Load diff
|
@ -241,6 +241,7 @@ LIBC {
|
|||
dup3;
|
||||
duplocale;
|
||||
endmntent;
|
||||
endpwent; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
endservent;
|
||||
endutent;
|
||||
environ;
|
||||
|
@ -1181,5 +1182,7 @@ LIBC_N {
|
|||
|
||||
LIBC_PRIVATE {
|
||||
global:
|
||||
dlmalloc_inspect_all; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
dlmalloc_trim; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
gMallocLeakZygoteChild;
|
||||
} LIBC_N;
|
||||
|
|
|
@ -387,7 +387,7 @@ LIBC {
|
|||
dup3;
|
||||
duplocale;
|
||||
endmntent;
|
||||
endpwent; # arm x86 mips nobrillo
|
||||
endpwent; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
endservent;
|
||||
endutent;
|
||||
environ;
|
||||
|
@ -1474,8 +1474,8 @@ LIBC_PRIVATE {
|
|||
_Unwind_VRS_Set; # arm
|
||||
atexit; # arm
|
||||
dlmalloc; # arm x86 mips nobrillo
|
||||
dlmalloc_inspect_all; # arm x86 mips nobrillo
|
||||
dlmalloc_trim; # arm x86 mips nobrillo
|
||||
dlmalloc_inspect_all; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
dlmalloc_trim; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
dlmalloc_usable_size; # arm x86 mips nobrillo
|
||||
gMallocLeakZygoteChild;
|
||||
SHA1Final; # arm x86 mips
|
||||
|
|
|
@ -347,7 +347,7 @@ LIBC {
|
|||
dup3;
|
||||
duplocale;
|
||||
endmntent;
|
||||
endpwent; # arm x86 mips nobrillo
|
||||
endpwent; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
endservent;
|
||||
endutent;
|
||||
environ;
|
||||
|
@ -1303,8 +1303,8 @@ LIBC_PRIVATE {
|
|||
__accept4; # arm x86 mips
|
||||
__bionic_brk; # arm x86 mips
|
||||
dlmalloc; # arm x86 mips nobrillo
|
||||
dlmalloc_inspect_all; # arm x86 mips nobrillo
|
||||
dlmalloc_trim; # arm x86 mips nobrillo
|
||||
dlmalloc_inspect_all; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
dlmalloc_trim; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
dlmalloc_usable_size; # arm x86 mips nobrillo
|
||||
gMallocLeakZygoteChild;
|
||||
SHA1Final; # arm x86 mips
|
||||
|
|
1185
libc/libc.mips64.brillo.map
Normal file
1185
libc/libc.mips64.brillo.map
Normal file
File diff suppressed because it is too large
Load diff
|
@ -241,6 +241,7 @@ LIBC {
|
|||
dup3;
|
||||
duplocale;
|
||||
endmntent;
|
||||
endpwent; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
endservent;
|
||||
endutent;
|
||||
environ;
|
||||
|
@ -1181,5 +1182,7 @@ LIBC_N {
|
|||
|
||||
LIBC_PRIVATE {
|
||||
global:
|
||||
dlmalloc_inspect_all; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
dlmalloc_trim; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
gMallocLeakZygoteChild;
|
||||
} LIBC_N;
|
||||
|
|
|
@ -345,7 +345,7 @@ LIBC {
|
|||
dup3;
|
||||
duplocale;
|
||||
endmntent;
|
||||
endpwent; # arm x86 mips nobrillo
|
||||
endpwent; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
endservent;
|
||||
endutent;
|
||||
environ;
|
||||
|
@ -1302,8 +1302,8 @@ LIBC_PRIVATE {
|
|||
__bionic_brk; # arm x86 mips
|
||||
__bionic_libgcc_compat_symbols; # arm x86
|
||||
dlmalloc; # arm x86 mips nobrillo
|
||||
dlmalloc_inspect_all; # arm x86 mips nobrillo
|
||||
dlmalloc_trim; # arm x86 mips nobrillo
|
||||
dlmalloc_inspect_all; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
dlmalloc_trim; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
dlmalloc_usable_size; # arm x86 mips nobrillo
|
||||
gMallocLeakZygoteChild;
|
||||
SHA1Final; # arm x86 mips
|
||||
|
|
1185
libc/libc.x86_64.brillo.map
Normal file
1185
libc/libc.x86_64.brillo.map
Normal file
File diff suppressed because it is too large
Load diff
|
@ -241,6 +241,7 @@ LIBC {
|
|||
dup3;
|
||||
duplocale;
|
||||
endmntent;
|
||||
endpwent; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
endservent;
|
||||
endutent;
|
||||
environ;
|
||||
|
@ -1181,5 +1182,7 @@ LIBC_N {
|
|||
|
||||
LIBC_PRIVATE {
|
||||
global:
|
||||
dlmalloc_inspect_all; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
dlmalloc_trim; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
gMallocLeakZygoteChild;
|
||||
} LIBC_N;
|
||||
|
|
Loading…
Reference in a new issue