Revert "Revert "Remove remaining ndk_cruft from LP64 platforms""
This reverts commit 23af25b747
.
Bug: http://b/26164862
Change-Id: I201bf49530f33f8ba6a1a35b79723afb9e84c7a5
This commit is contained in:
parent
23af25b747
commit
bc2e88a85d
12 changed files with 17 additions and 3591 deletions
|
@ -1387,11 +1387,8 @@ 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.
|
||||
|
@ -1427,17 +1424,15 @@ 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,11 +49,8 @@
|
|||
|
||||
extern "C" {
|
||||
|
||||
// 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__)
|
||||
// Brillo and LP64 don't need to support any legacy cruft.
|
||||
#if !defined(__BRILLO__) && !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.
|
||||
|
@ -367,8 +364,6 @@ 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() { }
|
||||
|
@ -392,6 +387,6 @@ int dlmalloc_trim(size_t pad) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif // !defined(__BRILLO__)
|
||||
#endif // !defined(__BRILLO__) && !defined (__LP64__)
|
||||
|
||||
} // extern "C"
|
||||
|
|
|
@ -383,7 +383,7 @@ LIBC {
|
|||
dup3;
|
||||
duplocale;
|
||||
endmntent;
|
||||
endpwent; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
endpwent; # arm x86 mips 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 arm64 x86 x86_64 mips mips64 nobrillo
|
||||
dlmalloc_trim; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
dlmalloc_inspect_all; # arm x86 mips nobrillo
|
||||
dlmalloc_trim; # arm x86 mips nobrillo
|
||||
dlmalloc_usable_size; # arm x86 mips nobrillo
|
||||
gMallocLeakZygoteChild;
|
||||
SHA1Final; # arm x86 mips
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -241,7 +241,6 @@ LIBC {
|
|||
dup3;
|
||||
duplocale;
|
||||
endmntent;
|
||||
endpwent; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
endservent;
|
||||
endutent;
|
||||
environ;
|
||||
|
@ -1182,7 +1181,5 @@ 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 arm64 x86 x86_64 mips mips64 nobrillo
|
||||
endpwent; # arm x86 mips 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 arm64 x86 x86_64 mips mips64 nobrillo
|
||||
dlmalloc_trim; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
dlmalloc_inspect_all; # arm x86 mips nobrillo
|
||||
dlmalloc_trim; # arm x86 mips nobrillo
|
||||
dlmalloc_usable_size; # arm x86 mips nobrillo
|
||||
gMallocLeakZygoteChild;
|
||||
SHA1Final; # arm x86 mips
|
||||
|
|
|
@ -347,7 +347,7 @@ LIBC {
|
|||
dup3;
|
||||
duplocale;
|
||||
endmntent;
|
||||
endpwent; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
endpwent; # arm x86 mips 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 arm64 x86 x86_64 mips mips64 nobrillo
|
||||
dlmalloc_trim; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
dlmalloc_inspect_all; # arm x86 mips nobrillo
|
||||
dlmalloc_trim; # arm x86 mips nobrillo
|
||||
dlmalloc_usable_size; # arm x86 mips nobrillo
|
||||
gMallocLeakZygoteChild;
|
||||
SHA1Final; # arm x86 mips
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -241,7 +241,6 @@ LIBC {
|
|||
dup3;
|
||||
duplocale;
|
||||
endmntent;
|
||||
endpwent; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
endservent;
|
||||
endutent;
|
||||
environ;
|
||||
|
@ -1182,7 +1181,5 @@ 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 arm64 x86 x86_64 mips mips64 nobrillo
|
||||
endpwent; # arm x86 mips 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 arm64 x86 x86_64 mips mips64 nobrillo
|
||||
dlmalloc_trim; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
dlmalloc_inspect_all; # arm x86 mips nobrillo
|
||||
dlmalloc_trim; # arm x86 mips nobrillo
|
||||
dlmalloc_usable_size; # arm x86 mips nobrillo
|
||||
gMallocLeakZygoteChild;
|
||||
SHA1Final; # arm x86 mips
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -241,7 +241,6 @@ LIBC {
|
|||
dup3;
|
||||
duplocale;
|
||||
endmntent;
|
||||
endpwent; # arm arm64 x86 x86_64 mips mips64 nobrillo
|
||||
endservent;
|
||||
endutent;
|
||||
environ;
|
||||
|
@ -1182,7 +1181,5 @@ 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