268a60019d
crtbegin_static is used by static exectuables which are guaranteed to be with the latest library regardless of their target API level. This change is in fact not a regression as crtbegin_static has been built with __ANDROID_API__=10000 before I645e6bb1234c27ae0a69b7b87a59206cfd350744 when __ANDROID_API__ tracked sdk_version, not min_sdk_version. sdk_version was not set for crtbegin_* objects and therefore the default "current" was (incorrectly) used. With this change, we are recovering the original behavior for the static variant, while the building of the dynamic variant becomes more correct - it's now with __ANDROID_API__=16. Without this change, several static executables fail to build as 1) crtbegin_static for them is built with __ANDROID_API__=16 and 2) libc_init_common.cpp uses pthread_atfork which is available only after API level 23. We hit undefined symbol error when linking. Bug: 134795810 Test: m Change-Id: I1430e57302951df33530ea0ae91b0d7a0609bf3d |
||
---|---|---|
.. | ||
arch-arm | ||
arch-arm64 | ||
arch-common/bionic | ||
arch-x86 | ||
arch-x86_64 | ||
async_safe | ||
bionic | ||
dns | ||
include | ||
kernel | ||
malloc_debug | ||
malloc_hooks | ||
platform | ||
private | ||
seccomp | ||
stdio | ||
system_properties | ||
tools | ||
tzcode | ||
upstream-freebsd | ||
upstream-netbsd | ||
upstream-openbsd | ||
versioner-dependencies | ||
Android.bp | ||
BUILD.bazel | ||
fs_config_generator.py | ||
libc.map.txt | ||
libstdc++.map.txt | ||
MODULE_LICENSE_BSD | ||
NOTICE | ||
SECCOMP_ALLOWLIST_APP.TXT | ||
SECCOMP_ALLOWLIST_COMMON.TXT | ||
SECCOMP_ALLOWLIST_SYSTEM.TXT | ||
SECCOMP_BLOCKLIST_APP.TXT | ||
SECCOMP_BLOCKLIST_COMMON.TXT | ||
SECCOMP_PRIORITY.TXT | ||
SYSCALLS.TXT | ||
version_script.txt |