2015-09-17 01:33:27 +02:00
|
|
|
// Define the common source files for all the libc instances
|
|
|
|
// =========================================================
|
|
|
|
libc_common_src_files = [
|
|
|
|
"bionic/ether_aton.c",
|
|
|
|
"bionic/ether_ntoa.c",
|
|
|
|
"bionic/fts.c",
|
|
|
|
"bionic/getpriority.c",
|
|
|
|
"bionic/initgroups.c",
|
|
|
|
"bionic/isatty.c",
|
|
|
|
"bionic/memmem.c",
|
|
|
|
"bionic/pututline.c",
|
|
|
|
"bionic/sched_cpualloc.c",
|
|
|
|
"bionic/sched_cpucount.c",
|
|
|
|
"bionic/sigblock.c",
|
|
|
|
"bionic/siginterrupt.c",
|
|
|
|
"bionic/sigsetmask.c",
|
|
|
|
"bionic/system_properties_compat.c",
|
|
|
|
"stdio/fread.c",
|
2015-10-15 23:49:45 +02:00
|
|
|
"stdio/refill.c",
|
2016-02-04 06:48:08 +01:00
|
|
|
"stdio/stdio.cpp",
|
2015-09-17 01:33:27 +02:00
|
|
|
"stdio/stdio_ext.cpp",
|
|
|
|
"stdlib/atexit.c",
|
|
|
|
"stdlib/exit.c",
|
|
|
|
]
|
|
|
|
|
|
|
|
// Various kinds of cruft.
|
|
|
|
// ========================================================
|
|
|
|
libc_common_src_files += [
|
|
|
|
"bionic/ndk_cruft.cpp",
|
|
|
|
]
|
|
|
|
|
|
|
|
libc_common_src_files_32 = [
|
|
|
|
"bionic/legacy_32_bit_support.cpp",
|
|
|
|
"bionic/time64.c",
|
|
|
|
]
|
|
|
|
|
2016-08-09 22:06:41 +02:00
|
|
|
libc_common_flags = [
|
|
|
|
"-D_LIBC=1",
|
|
|
|
"-Wall",
|
|
|
|
"-Wextra",
|
|
|
|
"-Wunused",
|
|
|
|
"-Wno-deprecated-declarations",
|
|
|
|
|
|
|
|
// Try to catch typical 32-bit assumptions that break with 64-bit pointers.
|
|
|
|
"-Werror=pointer-to-int-cast",
|
|
|
|
"-Werror=int-to-pointer-cast",
|
|
|
|
"-Werror=type-limits",
|
|
|
|
"-Werror",
|
|
|
|
]
|
|
|
|
|
2015-09-17 01:33:27 +02:00
|
|
|
// Define some common cflags
|
|
|
|
// ========================================================
|
2015-11-01 07:03:05 +01:00
|
|
|
cc_defaults {
|
|
|
|
name: "libc_defaults",
|
2016-08-09 22:06:41 +02:00
|
|
|
cflags: libc_common_flags,
|
|
|
|
asflags: libc_common_flags,
|
2015-11-01 07:03:05 +01:00
|
|
|
conlyflags: ["-std=gnu99"],
|
|
|
|
cppflags: [],
|
2016-02-04 06:48:08 +01:00
|
|
|
include_dirs: ["external/jemalloc/include"],
|
2015-09-17 01:33:27 +02:00
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
stl: "none",
|
|
|
|
system_shared_libs: [],
|
2016-04-07 22:27:24 +02:00
|
|
|
sanitize: {
|
|
|
|
never: true,
|
|
|
|
},
|
2015-11-01 07:03:05 +01:00
|
|
|
native_coverage: false,
|
2016-05-18 23:06:22 +02:00
|
|
|
clang: true,
|
2015-11-01 07:03:05 +01:00
|
|
|
}
|
2015-09-17 01:33:27 +02:00
|
|
|
|
|
|
|
// ANDROIDMK TRANSLATION ERROR: unsupported directive
|
|
|
|
// ifeq ($(strip $(DEBUG_BIONIC_LIBC)),true)
|
|
|
|
//libc_common_cflags += ["-DDEBUG"]
|
|
|
|
// ANDROIDMK TRANSLATION ERROR: unsupported directive
|
|
|
|
// endif
|
|
|
|
|
|
|
|
// ========================================================
|
|
|
|
// libc_stack_protector.a - stack protector code
|
|
|
|
// ========================================================
|
|
|
|
//
|
2016-01-11 22:20:55 +01:00
|
|
|
// Code that implements the stack protector (or that runs
|
|
|
|
// before TLS has been set up) needs to be compiled with
|
|
|
|
// -fno-stack-protector, since it accesses the stack canary
|
|
|
|
// TLS slot.
|
2015-09-17 01:33:27 +02:00
|
|
|
|
|
|
|
cc_library_static {
|
|
|
|
|
2016-01-11 22:20:55 +01:00
|
|
|
srcs: [
|
|
|
|
"bionic/__libc_init_main_thread.cpp",
|
|
|
|
"bionic/__stack_chk_fail.cpp",
|
|
|
|
],
|
|
|
|
arch: {
|
|
|
|
arm64: {
|
|
|
|
srcs: ["arch-arm64/bionic/__set_tls.c"],
|
|
|
|
},
|
|
|
|
x86: {
|
2016-02-29 19:37:56 +01:00
|
|
|
srcs: ["arch-x86/bionic/__set_tls.cpp"],
|
2016-01-11 22:20:55 +01:00
|
|
|
},
|
|
|
|
x86_64: {
|
|
|
|
srcs: ["arch-x86_64/bionic/__set_tls.c"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["libc_defaults"],
|
|
|
|
cflags: ["-fno-stack-protector"],
|
2015-09-17 01:33:27 +02:00
|
|
|
name: "libc_stack_protector",
|
|
|
|
}
|
|
|
|
|
2016-01-11 22:20:55 +01:00
|
|
|
// libc_init_static.cpp also needs to be built without stack protector,
|
|
|
|
// because it's responsible for setting up TLS for static executables.
|
|
|
|
// This isn't the case for dynamic executables because the dynamic linker
|
|
|
|
// has already set up the main thread's TLS.
|
|
|
|
|
|
|
|
cc_library_static {
|
|
|
|
name: "libc_init_static",
|
|
|
|
defaults: ["libc_defaults"],
|
|
|
|
srcs: ["bionic/libc_init_static.cpp"],
|
|
|
|
cflags: ["-fno-stack-protector"],
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-09-17 01:33:27 +02:00
|
|
|
// ========================================================
|
|
|
|
// libc_tzcode.a - upstream 'tzcode' code
|
|
|
|
// ========================================================
|
|
|
|
|
|
|
|
cc_library_static {
|
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["libc_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
srcs: [
|
2016-01-16 01:00:57 +01:00
|
|
|
"tzcode/**/*.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
"upstream-openbsd/lib/libc/time/wcsftime.c", // tzcode doesn't include wcsftime, so we use the OpenBSD one.
|
|
|
|
],
|
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
cflags: [
|
2015-10-15 23:49:45 +02:00
|
|
|
"-Wno-unused-parameter",
|
2015-09-17 01:33:27 +02:00
|
|
|
// Don't use ridiculous amounts of stack.
|
|
|
|
"-DALL_STATE",
|
|
|
|
// Include tzsetwall, timelocal, timegm, time2posix, and posix2time.
|
|
|
|
"-DSTD_INSPIRED",
|
2015-11-19 22:32:49 +01:00
|
|
|
// Obviously, we want to be thread-safe.
|
2015-10-15 23:49:45 +02:00
|
|
|
"-DTHREAD_SAFE",
|
2015-09-17 01:33:27 +02:00
|
|
|
// The name of the tm_gmtoff field in our struct tm.
|
|
|
|
"-DTM_GMTOFF=tm_gmtoff",
|
|
|
|
// Where we store our tzdata.
|
|
|
|
"-DTZDIR=\\\"/system/usr/share/zoneinfo\\\"",
|
2016-07-29 23:04:17 +02:00
|
|
|
// Include `tzname`, `timezone`, and `daylight` globals.
|
|
|
|
"-DHAVE_POSIX_DECLS=0",
|
2015-09-17 01:33:27 +02:00
|
|
|
"-DUSG_COMPAT=1",
|
2015-11-19 22:32:49 +01:00
|
|
|
// Use the empty string (instead of " ") as the timezone abbreviation
|
|
|
|
// fallback.
|
|
|
|
"-DWILDABBR=\\\"\\\"",
|
2015-09-17 01:33:27 +02:00
|
|
|
"-DNO_RUN_TIME_WARNINGS_ABOUT_YEAR_2000_PROBLEMS_THANK_YOU",
|
|
|
|
"-Dlint",
|
|
|
|
],
|
|
|
|
|
|
|
|
local_include_dirs: ["tzcode/"],
|
|
|
|
name: "libc_tzcode",
|
|
|
|
}
|
|
|
|
|
|
|
|
// ========================================================
|
|
|
|
// libc_dns.a - modified NetBSD DNS code
|
|
|
|
// ========================================================
|
|
|
|
|
|
|
|
cc_library_static {
|
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["libc_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
srcs: [
|
2016-01-16 01:00:57 +01:00
|
|
|
"dns/**/*.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
|
|
|
|
"upstream-netbsd/lib/libc/isc/ev_streams.c",
|
|
|
|
"upstream-netbsd/lib/libc/isc/ev_timers.c",
|
|
|
|
"upstream-netbsd/lib/libc/resolv/mtctxres.c",
|
|
|
|
],
|
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
cflags: [
|
2015-09-17 01:33:27 +02:00
|
|
|
"-DANDROID_CHANGES",
|
|
|
|
"-DINET6",
|
|
|
|
"-Wno-unused-parameter",
|
|
|
|
"-include netbsd-compat.h",
|
|
|
|
],
|
|
|
|
|
|
|
|
local_include_dirs: [
|
|
|
|
"dns/include",
|
|
|
|
"private",
|
|
|
|
"upstream-netbsd/lib/libc/include",
|
|
|
|
"upstream-netbsd/android/include",
|
|
|
|
],
|
|
|
|
|
|
|
|
name: "libc_dns",
|
|
|
|
}
|
|
|
|
|
|
|
|
// ========================================================
|
|
|
|
// libc_freebsd.a - upstream FreeBSD C library code
|
|
|
|
// ========================================================
|
|
|
|
//
|
|
|
|
// These files are built with the freebsd-compat.h header file
|
|
|
|
// automatically included.
|
|
|
|
|
|
|
|
cc_library_static {
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["libc_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
srcs: [
|
|
|
|
"upstream-freebsd/lib/libc/gen/ldexp.c",
|
|
|
|
"upstream-freebsd/lib/libc/gen/sleep.c",
|
|
|
|
"upstream-freebsd/lib/libc/gen/usleep.c",
|
|
|
|
"upstream-freebsd/lib/libc/stdlib/getopt_long.c",
|
|
|
|
"upstream-freebsd/lib/libc/stdlib/qsort.c",
|
|
|
|
"upstream-freebsd/lib/libc/stdlib/quick_exit.c",
|
|
|
|
"upstream-freebsd/lib/libc/stdlib/realpath.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wcpcpy.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wcpncpy.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wcscasecmp.c",
|
2015-10-15 23:49:45 +02:00
|
|
|
"upstream-freebsd/lib/libc/string/wcscat.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wcschr.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wcscmp.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wcscpy.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
"upstream-freebsd/lib/libc/string/wcscspn.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wcsdup.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wcslcat.c",
|
2015-10-15 23:49:45 +02:00
|
|
|
"upstream-freebsd/lib/libc/string/wcslen.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
"upstream-freebsd/lib/libc/string/wcsncasecmp.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wcsncat.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wcsncmp.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wcsncpy.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wcsnlen.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wcspbrk.c",
|
2015-10-15 23:49:45 +02:00
|
|
|
"upstream-freebsd/lib/libc/string/wcsrchr.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
"upstream-freebsd/lib/libc/string/wcsspn.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wcstok.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wmemchr.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wmemcmp.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wmemmove.c",
|
2016-01-16 01:00:57 +01:00
|
|
|
"upstream-freebsd/lib/libc/string/wmemset.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
],
|
|
|
|
arch: {
|
|
|
|
arm64: {
|
|
|
|
exclude_srcs: [
|
|
|
|
"upstream-freebsd/lib/libc/string/wmemmove.c",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
x86: {
|
|
|
|
exclude_srcs: [
|
|
|
|
"upstream-freebsd/lib/libc/string/wcschr.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wcscmp.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wcslen.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wcsrchr.c",
|
|
|
|
],
|
2015-11-23 23:12:15 +01:00
|
|
|
atom: {
|
|
|
|
exclude_srcs: [
|
|
|
|
"upstream-freebsd/lib/libc/string/wmemcmp.c",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
ssse3: {
|
|
|
|
exclude_srcs: [
|
|
|
|
"upstream-freebsd/lib/libc/string/wcscat.c",
|
|
|
|
"upstream-freebsd/lib/libc/string/wcscpy.c",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
sse4: {
|
|
|
|
exclude_srcs: [
|
|
|
|
"upstream-freebsd/lib/libc/string/wmemcmp.c",
|
|
|
|
],
|
|
|
|
},
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
cflags: [
|
2015-09-17 01:33:27 +02:00
|
|
|
"-Wno-sign-compare",
|
|
|
|
"-Wno-uninitialized",
|
|
|
|
"-include freebsd-compat.h",
|
|
|
|
],
|
|
|
|
|
|
|
|
local_include_dirs: [
|
|
|
|
"upstream-freebsd/android/include",
|
|
|
|
],
|
|
|
|
|
|
|
|
name: "libc_freebsd",
|
|
|
|
}
|
|
|
|
|
|
|
|
// ========================================================
|
|
|
|
// libc_netbsd.a - upstream NetBSD C library code
|
|
|
|
// ========================================================
|
|
|
|
//
|
|
|
|
// These files are built with the netbsd-compat.h header file
|
|
|
|
// automatically included.
|
|
|
|
|
|
|
|
cc_library_static {
|
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["libc_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
srcs: [
|
|
|
|
"upstream-netbsd/common/lib/libc/stdlib/random.c",
|
|
|
|
"upstream-netbsd/lib/libc/gen/nice.c",
|
|
|
|
"upstream-netbsd/lib/libc/gen/popen.c",
|
|
|
|
"upstream-netbsd/lib/libc/gen/psignal.c",
|
|
|
|
"upstream-netbsd/lib/libc/gen/utime.c",
|
|
|
|
"upstream-netbsd/lib/libc/gen/utmp.c",
|
|
|
|
"upstream-netbsd/lib/libc/inet/nsap_addr.c",
|
|
|
|
"upstream-netbsd/lib/libc/regex/regcomp.c",
|
|
|
|
"upstream-netbsd/lib/libc/regex/regerror.c",
|
|
|
|
"upstream-netbsd/lib/libc/regex/regexec.c",
|
|
|
|
"upstream-netbsd/lib/libc/regex/regfree.c",
|
|
|
|
"upstream-netbsd/lib/libc/stdlib/bsearch.c",
|
|
|
|
"upstream-netbsd/lib/libc/stdlib/div.c",
|
|
|
|
"upstream-netbsd/lib/libc/stdlib/drand48.c",
|
|
|
|
"upstream-netbsd/lib/libc/stdlib/erand48.c",
|
|
|
|
"upstream-netbsd/lib/libc/stdlib/jrand48.c",
|
|
|
|
"upstream-netbsd/lib/libc/stdlib/lcong48.c",
|
|
|
|
"upstream-netbsd/lib/libc/stdlib/ldiv.c",
|
|
|
|
"upstream-netbsd/lib/libc/stdlib/lldiv.c",
|
|
|
|
"upstream-netbsd/lib/libc/stdlib/lrand48.c",
|
|
|
|
"upstream-netbsd/lib/libc/stdlib/mrand48.c",
|
|
|
|
"upstream-netbsd/lib/libc/stdlib/nrand48.c",
|
|
|
|
"upstream-netbsd/lib/libc/stdlib/_rand48.c",
|
|
|
|
"upstream-netbsd/lib/libc/stdlib/rand_r.c",
|
|
|
|
"upstream-netbsd/lib/libc/stdlib/reallocarr.c",
|
|
|
|
"upstream-netbsd/lib/libc/stdlib/seed48.c",
|
|
|
|
"upstream-netbsd/lib/libc/stdlib/srand48.c",
|
|
|
|
"upstream-netbsd/lib/libc/string/memccpy.c",
|
|
|
|
"upstream-netbsd/lib/libc/string/strcasestr.c",
|
|
|
|
"upstream-netbsd/lib/libc/string/strcoll.c",
|
|
|
|
"upstream-netbsd/lib/libc/string/strxfrm.c",
|
|
|
|
],
|
|
|
|
multilib: {
|
|
|
|
lib32: {
|
|
|
|
// LP32 cruft
|
|
|
|
srcs: ["upstream-netbsd/common/lib/libc/hash/sha1/sha1.c"],
|
|
|
|
},
|
|
|
|
},
|
2015-11-01 07:03:05 +01:00
|
|
|
cflags: [
|
2015-09-17 01:33:27 +02:00
|
|
|
"-Wno-sign-compare",
|
|
|
|
"-Wno-uninitialized",
|
2016-02-29 19:37:56 +01:00
|
|
|
"-Wno-unused-parameter",
|
2015-09-17 01:33:27 +02:00
|
|
|
"-DPOSIX_MISTAKE",
|
|
|
|
"-include netbsd-compat.h",
|
|
|
|
],
|
|
|
|
|
|
|
|
local_include_dirs: [
|
|
|
|
"upstream-netbsd/android/include",
|
|
|
|
"upstream-netbsd/lib/libc/include",
|
|
|
|
],
|
|
|
|
|
|
|
|
name: "libc_netbsd",
|
|
|
|
}
|
|
|
|
|
|
|
|
// ========================================================
|
|
|
|
// libc_openbsd_ndk.a - upstream OpenBSD C library code
|
|
|
|
// that can be safely included in the libc_ndk.a (doesn't
|
|
|
|
// contain any troublesome global data or constructors).
|
|
|
|
// ========================================================
|
|
|
|
//
|
|
|
|
// These files are built with the openbsd-compat.h header file
|
|
|
|
// automatically included.
|
|
|
|
|
|
|
|
cc_library_static {
|
|
|
|
name: "libc_openbsd_ndk",
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["libc_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
srcs: [
|
|
|
|
"upstream-openbsd/lib/libc/compat-43/killpg.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/alarm.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/ctype_.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/daemon.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/err.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/errx.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/exec.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/fnmatch.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/ftok.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/getprogname.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/isctype.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/setprogname.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/time.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/tolower_.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/toupper_.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/verr.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/verrx.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/vwarn.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/vwarnx.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/warn.c",
|
|
|
|
"upstream-openbsd/lib/libc/gen/warnx.c",
|
|
|
|
"upstream-openbsd/lib/libc/locale/btowc.c",
|
|
|
|
"upstream-openbsd/lib/libc/locale/mbrlen.c",
|
|
|
|
"upstream-openbsd/lib/libc/locale/mbstowcs.c",
|
|
|
|
"upstream-openbsd/lib/libc/locale/mbtowc.c",
|
|
|
|
"upstream-openbsd/lib/libc/locale/wcscoll.c",
|
|
|
|
"upstream-openbsd/lib/libc/locale/wcstod.c",
|
|
|
|
"upstream-openbsd/lib/libc/locale/wcstof.c",
|
|
|
|
"upstream-openbsd/lib/libc/locale/wcstoimax.c",
|
|
|
|
"upstream-openbsd/lib/libc/locale/wcstol.c",
|
|
|
|
"upstream-openbsd/lib/libc/locale/wcstold.c",
|
|
|
|
"upstream-openbsd/lib/libc/locale/wcstoll.c",
|
|
|
|
"upstream-openbsd/lib/libc/locale/wcstombs.c",
|
|
|
|
"upstream-openbsd/lib/libc/locale/wcstoul.c",
|
|
|
|
"upstream-openbsd/lib/libc/locale/wcstoull.c",
|
|
|
|
"upstream-openbsd/lib/libc/locale/wcstoumax.c",
|
|
|
|
"upstream-openbsd/lib/libc/locale/wcsxfrm.c",
|
|
|
|
"upstream-openbsd/lib/libc/locale/wctob.c",
|
|
|
|
"upstream-openbsd/lib/libc/locale/wctomb.c",
|
2016-04-06 20:56:41 +02:00
|
|
|
"upstream-openbsd/lib/libc/net/base64.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
"upstream-openbsd/lib/libc/net/htonl.c",
|
|
|
|
"upstream-openbsd/lib/libc/net/htons.c",
|
|
|
|
"upstream-openbsd/lib/libc/net/inet_lnaof.c",
|
|
|
|
"upstream-openbsd/lib/libc/net/inet_makeaddr.c",
|
|
|
|
"upstream-openbsd/lib/libc/net/inet_netof.c",
|
|
|
|
"upstream-openbsd/lib/libc/net/inet_ntoa.c",
|
|
|
|
"upstream-openbsd/lib/libc/net/inet_ntop.c",
|
|
|
|
"upstream-openbsd/lib/libc/net/inet_pton.c",
|
|
|
|
"upstream-openbsd/lib/libc/net/ntohl.c",
|
|
|
|
"upstream-openbsd/lib/libc/net/ntohs.c",
|
2016-01-19 21:50:20 +01:00
|
|
|
"upstream-openbsd/lib/libc/net/res_random.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
"upstream-openbsd/lib/libc/stdio/fflush.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/fgetln.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/fgets.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/fgetwc.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/fgetws.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/flags.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/fmemopen.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/fpurge.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/fputs.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/fputwc.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/fputws.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/fvwrite.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/fwalk.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/fwide.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/fwrite.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/getdelim.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/gets.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/makebuf.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/mktemp.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/open_memstream.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/open_wmemstream.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/perror.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/puts.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/rget.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/setvbuf.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/tempnam.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/tmpnam.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/ungetc.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/ungetwc.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/vasprintf.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/vdprintf.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/vfprintf.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/vfscanf.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/vfwprintf.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/vfwscanf.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/vsscanf.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/vswprintf.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/vswscanf.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/wbuf.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdio/wsetup.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/abs.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/atoi.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/atol.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/atoll.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/getenv.c",
|
2016-04-07 22:24:50 +02:00
|
|
|
"upstream-openbsd/lib/libc/stdlib/getsubopt.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
"upstream-openbsd/lib/libc/stdlib/insque.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/imaxabs.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/imaxdiv.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/labs.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/llabs.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/lsearch.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/reallocarray.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/remque.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/setenv.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/strtoimax.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/strtol.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/strtoll.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/strtoul.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/strtoull.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/strtoumax.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/system.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/tfind.c",
|
|
|
|
"upstream-openbsd/lib/libc/stdlib/tsearch.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strcasecmp.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strcspn.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strdup.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strndup.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strpbrk.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strsep.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strspn.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strstr.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strtok.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/wmemcpy.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/wcslcpy.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/wcsstr.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/wcswidth.c",
|
|
|
|
],
|
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
cflags: [
|
2015-09-17 01:33:27 +02:00
|
|
|
"-Wno-sign-compare",
|
|
|
|
"-Wno-uninitialized",
|
|
|
|
"-Wno-unused-parameter",
|
|
|
|
"-include openbsd-compat.h",
|
|
|
|
],
|
|
|
|
|
|
|
|
local_include_dirs: [
|
|
|
|
"private",
|
|
|
|
"stdio",
|
|
|
|
"upstream-openbsd/android/include",
|
|
|
|
"upstream-openbsd/lib/libc/include",
|
|
|
|
"upstream-openbsd/lib/libc/gdtoa/",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
// ========================================================
|
|
|
|
// libc_openbsd.a - upstream OpenBSD C library code
|
|
|
|
// ========================================================
|
|
|
|
//
|
|
|
|
// These files are built with the openbsd-compat.h header file
|
|
|
|
// automatically included.
|
|
|
|
cc_library_static {
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["libc_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
srcs: [
|
2015-09-18 00:28:45 +02:00
|
|
|
// These two depend on getentropy_linux.c, which isn't in libc_ndk.a.
|
2015-09-17 01:33:27 +02:00
|
|
|
"upstream-openbsd/lib/libc/crypt/arc4random.c",
|
|
|
|
"upstream-openbsd/lib/libc/crypt/arc4random_uniform.c",
|
|
|
|
|
|
|
|
// May be overriden by per-arch optimized versions
|
|
|
|
"upstream-openbsd/lib/libc/string/memchr.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/memmove.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/memrchr.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/stpcpy.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/stpncpy.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strcat.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strcpy.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strlcat.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strlcpy.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strncat.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strncmp.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strncpy.c",
|
|
|
|
],
|
|
|
|
|
|
|
|
arch: {
|
|
|
|
arm: {
|
|
|
|
exclude_srcs: [
|
|
|
|
"upstream-openbsd/lib/libc/string/strcpy.c",
|
|
|
|
],
|
2015-11-23 23:12:15 +01:00
|
|
|
cortex_a7: {
|
|
|
|
exclude_srcs: [
|
|
|
|
"upstream-openbsd/lib/libc/string/memmove.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/stpcpy.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strcat.c",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
cortex_a53: {
|
|
|
|
exclude_srcs: [
|
|
|
|
"upstream-openbsd/lib/libc/string/memmove.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/stpcpy.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strcat.c",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
cortex_a53_a57: {
|
|
|
|
exclude_srcs: [
|
|
|
|
"upstream-openbsd/lib/libc/string/memmove.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/stpcpy.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strcat.c",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
cortex_a8: {
|
|
|
|
exclude_srcs: [
|
|
|
|
"upstream-openbsd/lib/libc/string/memmove.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/stpcpy.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strcat.c",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
cortex_a9: {
|
|
|
|
exclude_srcs: [
|
|
|
|
"upstream-openbsd/lib/libc/string/memmove.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/stpcpy.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strcat.c",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
cortex_a15: {
|
|
|
|
exclude_srcs: [
|
|
|
|
"upstream-openbsd/lib/libc/string/memmove.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/stpcpy.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strcat.c",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
denver: {
|
|
|
|
exclude_srcs: [
|
|
|
|
"upstream-openbsd/lib/libc/string/memmove.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/stpcpy.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strcat.c",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
krait: {
|
|
|
|
exclude_srcs: [
|
|
|
|
"upstream-openbsd/lib/libc/string/memmove.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/stpcpy.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strcat.c",
|
|
|
|
],
|
|
|
|
},
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
2015-11-23 23:12:15 +01:00
|
|
|
arm64: {
|
2015-09-17 01:33:27 +02:00
|
|
|
exclude_srcs: [
|
2015-11-23 23:12:15 +01:00
|
|
|
"upstream-openbsd/lib/libc/string/memchr.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
"upstream-openbsd/lib/libc/string/memmove.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/stpcpy.c",
|
2015-11-23 23:12:15 +01:00
|
|
|
"upstream-openbsd/lib/libc/string/strcpy.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strncmp.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
],
|
|
|
|
},
|
2015-11-23 23:12:15 +01:00
|
|
|
|
|
|
|
x86: {
|
2015-09-17 01:33:27 +02:00
|
|
|
exclude_srcs: [
|
2015-11-23 23:12:15 +01:00
|
|
|
"upstream-openbsd/lib/libc/string/memchr.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
"upstream-openbsd/lib/libc/string/memmove.c",
|
2015-11-23 23:12:15 +01:00
|
|
|
"upstream-openbsd/lib/libc/string/memrchr.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
"upstream-openbsd/lib/libc/string/stpcpy.c",
|
2015-11-23 23:12:15 +01:00
|
|
|
"upstream-openbsd/lib/libc/string/stpncpy.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
"upstream-openbsd/lib/libc/string/strcat.c",
|
2015-11-23 23:12:15 +01:00
|
|
|
"upstream-openbsd/lib/libc/string/strcpy.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strncmp.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strncpy.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
],
|
2015-11-23 23:12:15 +01:00
|
|
|
ssse3: {
|
|
|
|
exclude_srcs: [
|
|
|
|
"upstream-openbsd/lib/libc/string/strlcat.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strlcpy.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strncat.c",
|
|
|
|
],
|
|
|
|
},
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
|
2015-11-23 23:12:15 +01:00
|
|
|
x86_64: {
|
2015-09-17 01:33:27 +02:00
|
|
|
exclude_srcs: [
|
|
|
|
"upstream-openbsd/lib/libc/string/memmove.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/stpcpy.c",
|
2015-11-23 23:12:15 +01:00
|
|
|
"upstream-openbsd/lib/libc/string/stpncpy.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strcat.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
"upstream-openbsd/lib/libc/string/strcpy.c",
|
2015-11-23 23:12:15 +01:00
|
|
|
"upstream-openbsd/lib/libc/string/strlcat.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strlcpy.c",
|
|
|
|
"upstream-openbsd/lib/libc/string/strncat.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
"upstream-openbsd/lib/libc/string/strncmp.c",
|
2015-11-23 23:12:15 +01:00
|
|
|
"upstream-openbsd/lib/libc/string/strncpy.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
cflags: [
|
2015-09-17 01:33:27 +02:00
|
|
|
"-Wno-sign-compare",
|
|
|
|
"-Wno-uninitialized",
|
|
|
|
"-Wno-unused-parameter",
|
|
|
|
"-include openbsd-compat.h",
|
|
|
|
],
|
|
|
|
|
|
|
|
local_include_dirs: [
|
|
|
|
"private",
|
|
|
|
"stdio",
|
|
|
|
"upstream-openbsd/android/include",
|
|
|
|
"upstream-openbsd/lib/libc/include",
|
|
|
|
"upstream-openbsd/lib/libc/gdtoa/",
|
|
|
|
],
|
|
|
|
|
|
|
|
name: "libc_openbsd",
|
|
|
|
}
|
|
|
|
|
|
|
|
// ========================================================
|
|
|
|
// libc_gdtoa.a - upstream OpenBSD C library gdtoa code
|
|
|
|
// ========================================================
|
|
|
|
//
|
|
|
|
// These files are built with the openbsd-compat.h header file
|
|
|
|
// automatically included.
|
|
|
|
|
|
|
|
cc_library_static {
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["libc_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
srcs: [
|
|
|
|
"upstream-openbsd/android/gdtoa_support.cpp",
|
|
|
|
"upstream-openbsd/lib/libc/gdtoa/dmisc.c",
|
|
|
|
"upstream-openbsd/lib/libc/gdtoa/dtoa.c",
|
|
|
|
"upstream-openbsd/lib/libc/gdtoa/gdtoa.c",
|
|
|
|
"upstream-openbsd/lib/libc/gdtoa/gethex.c",
|
|
|
|
"upstream-openbsd/lib/libc/gdtoa/gmisc.c",
|
|
|
|
"upstream-openbsd/lib/libc/gdtoa/hd_init.c",
|
|
|
|
"upstream-openbsd/lib/libc/gdtoa/hdtoa.c",
|
|
|
|
"upstream-openbsd/lib/libc/gdtoa/hexnan.c",
|
|
|
|
"upstream-openbsd/lib/libc/gdtoa/ldtoa.c",
|
|
|
|
"upstream-openbsd/lib/libc/gdtoa/misc.c",
|
|
|
|
"upstream-openbsd/lib/libc/gdtoa/smisc.c",
|
|
|
|
"upstream-openbsd/lib/libc/gdtoa/strtod.c",
|
|
|
|
"upstream-openbsd/lib/libc/gdtoa/strtodg.c",
|
|
|
|
"upstream-openbsd/lib/libc/gdtoa/strtof.c",
|
|
|
|
"upstream-openbsd/lib/libc/gdtoa/strtord.c",
|
|
|
|
"upstream-openbsd/lib/libc/gdtoa/sum.c",
|
|
|
|
"upstream-openbsd/lib/libc/gdtoa/ulp.c",
|
|
|
|
],
|
|
|
|
multilib: {
|
|
|
|
lib64: {
|
2015-11-23 23:12:15 +01:00
|
|
|
srcs: ["upstream-openbsd/lib/libc/gdtoa/strtorQ.c"],
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
cflags: [
|
2015-09-17 01:33:27 +02:00
|
|
|
"-Wno-sign-compare",
|
|
|
|
"-Wno-uninitialized",
|
|
|
|
"-include openbsd-compat.h",
|
|
|
|
],
|
|
|
|
|
|
|
|
local_include_dirs: [
|
|
|
|
"private",
|
|
|
|
"upstream-openbsd/android/include",
|
|
|
|
"upstream-openbsd/lib/libc/include",
|
|
|
|
],
|
|
|
|
|
|
|
|
name: "libc_gdtoa",
|
|
|
|
}
|
|
|
|
|
|
|
|
// ========================================================
|
|
|
|
// libc_bionic.a - home-grown C library code
|
|
|
|
// ========================================================
|
|
|
|
|
|
|
|
cc_library_static {
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["libc_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
srcs: [
|
2015-11-30 23:07:58 +01:00
|
|
|
// The following implementations depend on pthread data, so we can't
|
|
|
|
// include them in libc_ndk.a.
|
|
|
|
"bionic/__cxa_thread_atexit_impl.cpp",
|
2015-09-17 01:33:27 +02:00
|
|
|
"bionic/fork.cpp",
|
|
|
|
|
|
|
|
// The data that backs getauxval is initialized in the libc init
|
|
|
|
// functions which are invoked by the linker. If this file is included
|
|
|
|
// in libc_ndk.a, only one of the copies of the global data will be
|
|
|
|
// initialized, resulting in nullptr dereferences.
|
|
|
|
"bionic/getauxval.cpp",
|
|
|
|
|
2015-09-18 00:28:45 +02:00
|
|
|
// These four require getauxval, which isn't available on older
|
2015-09-17 01:33:27 +02:00
|
|
|
// platforms.
|
|
|
|
"bionic/getentropy_linux.c",
|
|
|
|
"bionic/sysconf.cpp",
|
|
|
|
"bionic/vdso.cpp",
|
2015-09-18 00:28:45 +02:00
|
|
|
"bionic/setjmp_cookie.cpp",
|
2015-09-17 01:33:27 +02:00
|
|
|
|
|
|
|
"bionic/__memcpy_chk.cpp",
|
|
|
|
"bionic/__strcat_chk.cpp",
|
|
|
|
"bionic/__strcpy_chk.cpp",
|
|
|
|
"bionic/strchr.cpp",
|
|
|
|
"bionic/strnlen.c",
|
|
|
|
"bionic/strrchr.cpp",
|
|
|
|
],
|
2015-11-01 07:03:05 +01:00
|
|
|
cflags: ["-Wframe-larger-than=2048"],
|
2015-09-17 01:33:27 +02:00
|
|
|
|
|
|
|
arch: {
|
|
|
|
arm: {
|
|
|
|
srcs: [
|
2016-02-04 06:48:08 +01:00
|
|
|
"arch-arm/generic/bionic/memcmp.S",
|
|
|
|
"arch-arm/generic/bionic/memcpy.S",
|
|
|
|
"arch-arm/generic/bionic/memset.S",
|
|
|
|
"arch-arm/generic/bionic/strcmp.S",
|
|
|
|
"arch-arm/generic/bionic/strcpy.S",
|
|
|
|
"arch-arm/generic/bionic/strlen.c",
|
|
|
|
|
2015-09-17 01:33:27 +02:00
|
|
|
"arch-arm/bionic/abort_arm.S",
|
|
|
|
"arch-arm/bionic/atomics_arm.c",
|
|
|
|
"arch-arm/bionic/__bionic_clone.S",
|
|
|
|
"arch-arm/bionic/_exit_with_stack_teardown.S",
|
|
|
|
"arch-arm/bionic/libgcc_compat.c",
|
|
|
|
"arch-arm/bionic/popcount_tab.c",
|
|
|
|
"arch-arm/bionic/__restore.S",
|
|
|
|
"arch-arm/bionic/setjmp.S",
|
|
|
|
"arch-arm/bionic/syscall.S",
|
|
|
|
"arch-arm/bionic/vfork.S",
|
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"bionic/__memcpy_chk.cpp",
|
|
|
|
],
|
2015-11-23 23:12:15 +01:00
|
|
|
cortex_a7: {
|
|
|
|
srcs: [
|
|
|
|
"arch-arm/cortex-a7/bionic/memset.S",
|
|
|
|
|
|
|
|
"arch-arm/cortex-a15/bionic/memcpy.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/stpcpy.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcat.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/__strcat_chk.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcmp.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcpy.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/__strcpy_chk.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strlen.S",
|
|
|
|
|
|
|
|
"arch-arm/denver/bionic/memmove.S",
|
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"arch-arm/generic/bionic/memcpy.S",
|
|
|
|
"arch-arm/generic/bionic/memset.S",
|
|
|
|
"arch-arm/generic/bionic/strcmp.S",
|
|
|
|
"arch-arm/generic/bionic/strcpy.S",
|
|
|
|
"arch-arm/generic/bionic/strlen.c",
|
|
|
|
"bionic/__strcat_chk.cpp",
|
|
|
|
"bionic/__strcpy_chk.cpp",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
cortex_a53: {
|
|
|
|
srcs: [
|
|
|
|
"arch-arm/cortex-a53/bionic/memcpy.S",
|
|
|
|
"arch-arm/cortex-a53/bionic/__strcat_chk.S",
|
|
|
|
"arch-arm/cortex-a53/bionic/__strcpy_chk.S",
|
|
|
|
|
|
|
|
"arch-arm/cortex-a7/bionic/memset.S",
|
|
|
|
|
|
|
|
"arch-arm/cortex-a15/bionic/stpcpy.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcat.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcmp.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcpy.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strlen.S",
|
|
|
|
|
|
|
|
"arch-arm/denver/bionic/memmove.S",
|
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"arch-arm/generic/bionic/memcpy.S",
|
|
|
|
"arch-arm/generic/bionic/memset.S",
|
|
|
|
"arch-arm/generic/bionic/strcmp.S",
|
|
|
|
"arch-arm/generic/bionic/strcpy.S",
|
|
|
|
"arch-arm/generic/bionic/strlen.c",
|
|
|
|
"bionic/__strcat_chk.cpp",
|
|
|
|
"bionic/__strcpy_chk.cpp",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
cortex_a53_a57: {
|
|
|
|
srcs: [
|
|
|
|
"arch-arm/cortex-a15/bionic/memcpy.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/memset.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/stpcpy.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcat.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/__strcat_chk.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcmp.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcpy.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/__strcpy_chk.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strlen.S",
|
|
|
|
|
|
|
|
"arch-arm/denver/bionic/memmove.S",
|
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"arch-arm/generic/bionic/memcpy.S",
|
|
|
|
"arch-arm/generic/bionic/memset.S",
|
|
|
|
"arch-arm/generic/bionic/strcmp.S",
|
|
|
|
"arch-arm/generic/bionic/strcpy.S",
|
|
|
|
"arch-arm/generic/bionic/strlen.c",
|
|
|
|
"bionic/__strcat_chk.cpp",
|
|
|
|
"bionic/__strcpy_chk.cpp",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
cortex_a8: {
|
|
|
|
srcs: [
|
|
|
|
"arch-arm/cortex-a15/bionic/memcpy.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/memset.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/stpcpy.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcat.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/__strcat_chk.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcmp.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcpy.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/__strcpy_chk.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strlen.S",
|
|
|
|
|
|
|
|
"arch-arm/denver/bionic/memmove.S",
|
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"arch-arm/generic/bionic/memcpy.S",
|
|
|
|
"arch-arm/generic/bionic/memset.S",
|
|
|
|
"arch-arm/generic/bionic/strcmp.S",
|
|
|
|
"arch-arm/generic/bionic/strcpy.S",
|
|
|
|
"arch-arm/generic/bionic/strlen.c",
|
|
|
|
"bionic/__strcat_chk.cpp",
|
|
|
|
"bionic/__strcpy_chk.cpp",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
cortex_a9: {
|
|
|
|
srcs: [
|
|
|
|
"arch-arm/cortex-a9/bionic/memcpy.S",
|
|
|
|
"arch-arm/cortex-a9/bionic/memset.S",
|
|
|
|
"arch-arm/cortex-a9/bionic/stpcpy.S",
|
|
|
|
"arch-arm/cortex-a9/bionic/strcat.S",
|
|
|
|
"arch-arm/cortex-a9/bionic/__strcat_chk.S",
|
|
|
|
"arch-arm/cortex-a9/bionic/strcmp.S",
|
|
|
|
"arch-arm/cortex-a9/bionic/strcpy.S",
|
|
|
|
"arch-arm/cortex-a9/bionic/__strcpy_chk.S",
|
|
|
|
"arch-arm/cortex-a9/bionic/strlen.S",
|
|
|
|
|
|
|
|
"arch-arm/denver/bionic/memmove.S",
|
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"arch-arm/generic/bionic/memcpy.S",
|
|
|
|
"arch-arm/generic/bionic/memset.S",
|
|
|
|
"arch-arm/generic/bionic/strcmp.S",
|
|
|
|
"arch-arm/generic/bionic/strcpy.S",
|
|
|
|
"arch-arm/generic/bionic/strlen.c",
|
|
|
|
"bionic/__strcat_chk.cpp",
|
|
|
|
"bionic/__strcpy_chk.cpp",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
cortex_a15: {
|
|
|
|
srcs: [
|
|
|
|
"arch-arm/cortex-a15/bionic/memcpy.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/memset.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/stpcpy.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcat.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/__strcat_chk.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcmp.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcpy.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/__strcpy_chk.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strlen.S",
|
|
|
|
|
|
|
|
"arch-arm/denver/bionic/memmove.S",
|
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"arch-arm/generic/bionic/memcpy.S",
|
|
|
|
"arch-arm/generic/bionic/memset.S",
|
|
|
|
"arch-arm/generic/bionic/strcmp.S",
|
|
|
|
"arch-arm/generic/bionic/strcpy.S",
|
|
|
|
"arch-arm/generic/bionic/strlen.c",
|
|
|
|
"bionic/__strcat_chk.cpp",
|
|
|
|
"bionic/__strcpy_chk.cpp",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
denver: {
|
|
|
|
srcs: [
|
|
|
|
"arch-arm/denver/bionic/memcpy.S",
|
|
|
|
"arch-arm/denver/bionic/memmove.S",
|
|
|
|
"arch-arm/denver/bionic/memset.S",
|
|
|
|
"arch-arm/denver/bionic/__strcat_chk.S",
|
|
|
|
"arch-arm/denver/bionic/__strcpy_chk.S",
|
|
|
|
|
|
|
|
// Use cortex-a15 versions of strcat/strcpy/strlen.
|
|
|
|
"arch-arm/cortex-a15/bionic/stpcpy.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcat.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcmp.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcpy.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strlen.S",
|
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"arch-arm/generic/bionic/memcpy.S",
|
|
|
|
"arch-arm/generic/bionic/memset.S",
|
|
|
|
"arch-arm/generic/bionic/strcmp.S",
|
|
|
|
"arch-arm/generic/bionic/strcpy.S",
|
|
|
|
"arch-arm/generic/bionic/strlen.c",
|
|
|
|
"bionic/__strcat_chk.cpp",
|
|
|
|
"bionic/__strcpy_chk.cpp",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
krait: {
|
|
|
|
srcs: [
|
|
|
|
"arch-arm/krait/bionic/memcpy.S",
|
|
|
|
"arch-arm/krait/bionic/memset.S",
|
|
|
|
"arch-arm/krait/bionic/strcmp.S",
|
|
|
|
"arch-arm/krait/bionic/__strcat_chk.S",
|
|
|
|
"arch-arm/krait/bionic/__strcpy_chk.S",
|
|
|
|
|
|
|
|
// Use cortex-a15 versions of strcat/strcpy/strlen.
|
|
|
|
"arch-arm/cortex-a15/bionic/stpcpy.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcat.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strcpy.S",
|
|
|
|
"arch-arm/cortex-a15/bionic/strlen.S",
|
|
|
|
|
|
|
|
"arch-arm/denver/bionic/memmove.S",
|
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"arch-arm/generic/bionic/memcpy.S",
|
|
|
|
"arch-arm/generic/bionic/memset.S",
|
|
|
|
"arch-arm/generic/bionic/strcmp.S",
|
|
|
|
"arch-arm/generic/bionic/strcpy.S",
|
|
|
|
"arch-arm/generic/bionic/strlen.c",
|
|
|
|
"bionic/__strcat_chk.cpp",
|
|
|
|
"bionic/__strcpy_chk.cpp",
|
|
|
|
],
|
|
|
|
},
|
2015-09-17 01:33:27 +02:00
|
|
|
|
|
|
|
},
|
|
|
|
arm64: {
|
|
|
|
srcs: [
|
|
|
|
"arch-arm64/generic/bionic/memchr.S",
|
|
|
|
"arch-arm64/generic/bionic/memcmp.S",
|
|
|
|
"arch-arm64/generic/bionic/memcpy.S",
|
|
|
|
"arch-arm64/generic/bionic/memmove.S",
|
|
|
|
"arch-arm64/generic/bionic/memset.S",
|
|
|
|
"arch-arm64/generic/bionic/stpcpy.S",
|
|
|
|
"arch-arm64/generic/bionic/strchr.S",
|
|
|
|
"arch-arm64/generic/bionic/strcmp.S",
|
|
|
|
"arch-arm64/generic/bionic/strcpy.S",
|
|
|
|
"arch-arm64/generic/bionic/strlen.S",
|
|
|
|
"arch-arm64/generic/bionic/strncmp.S",
|
|
|
|
"arch-arm64/generic/bionic/strnlen.S",
|
|
|
|
"arch-arm64/generic/bionic/wmemmove.S",
|
2016-02-04 06:48:08 +01:00
|
|
|
|
|
|
|
"arch-arm64/bionic/__bionic_clone.S",
|
|
|
|
"arch-arm64/bionic/_exit_with_stack_teardown.S",
|
|
|
|
"arch-arm64/bionic/setjmp.S",
|
|
|
|
"arch-arm64/bionic/syscall.S",
|
|
|
|
"arch-arm64/bionic/vfork.S",
|
2015-09-17 01:33:27 +02:00
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"bionic/__memcpy_chk.cpp",
|
|
|
|
"bionic/strchr.cpp",
|
|
|
|
"bionic/strnlen.c",
|
|
|
|
],
|
2015-11-23 23:12:15 +01:00
|
|
|
denver64: {
|
|
|
|
srcs: [
|
|
|
|
"arch-arm64/denver64/bionic/memcpy.S",
|
|
|
|
"arch-arm64/denver64/bionic/memset.S",
|
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"arch-arm64/generic/bionic/memcpy.S",
|
|
|
|
"arch-arm64/generic/bionic/memset.S",
|
|
|
|
],
|
|
|
|
},
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
mips: {
|
|
|
|
srcs: [
|
2016-02-04 06:48:08 +01:00
|
|
|
"arch-mips/string/memcmp.c",
|
|
|
|
"arch-mips/string/memcpy.S",
|
|
|
|
"arch-mips/string/memset.S",
|
|
|
|
"arch-mips/string/strcmp.S",
|
|
|
|
|
2015-09-17 01:33:27 +02:00
|
|
|
"arch-mips/bionic/__bionic_clone.S",
|
|
|
|
"arch-mips/bionic/cacheflush.cpp",
|
|
|
|
"arch-mips/bionic/_exit_with_stack_teardown.S",
|
2016-02-29 19:37:56 +01:00
|
|
|
"arch-mips/bionic/libgcc_compat.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
"arch-mips/bionic/setjmp.S",
|
|
|
|
"arch-mips/bionic/syscall.S",
|
|
|
|
"arch-mips/bionic/vfork.S",
|
2016-05-12 10:43:07 +02:00
|
|
|
|
|
|
|
"arch-mips/string/mips_strlen.c",
|
2015-09-17 01:33:27 +02:00
|
|
|
],
|
2015-11-23 23:12:15 +01:00
|
|
|
rev6: {
|
|
|
|
srcs: [
|
2016-05-12 10:43:07 +02:00
|
|
|
"arch-mips/string/strlen.c",
|
2015-11-23 23:12:15 +01:00
|
|
|
],
|
|
|
|
exclude_srcs: [
|
2016-05-12 10:43:07 +02:00
|
|
|
"arch-mips/string/mips_strlen.c",
|
2015-11-23 23:12:15 +01:00
|
|
|
],
|
|
|
|
},
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
mips64: {
|
|
|
|
srcs: [
|
2016-02-04 06:48:08 +01:00
|
|
|
"arch-mips/string/memcmp.c",
|
|
|
|
"arch-mips/string/memcpy.S",
|
|
|
|
"arch-mips/string/memset.S",
|
|
|
|
"arch-mips/string/strcmp.S",
|
|
|
|
"arch-mips/string/strlen.c",
|
|
|
|
|
2015-09-17 01:33:27 +02:00
|
|
|
"arch-mips64/bionic/__bionic_clone.S",
|
|
|
|
"arch-mips64/bionic/_exit_with_stack_teardown.S",
|
|
|
|
"arch-mips64/bionic/setjmp.S",
|
|
|
|
"arch-mips64/bionic/syscall.S",
|
|
|
|
"arch-mips64/bionic/vfork.S",
|
|
|
|
"arch-mips64/bionic/stat.cpp",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
x86: {
|
|
|
|
srcs: [
|
|
|
|
"arch-x86/generic/string/memcmp.S",
|
|
|
|
"arch-x86/generic/string/strcmp.S",
|
|
|
|
"arch-x86/generic/string/strncmp.S",
|
|
|
|
"arch-x86/generic/string/strcat.S",
|
|
|
|
"arch-x86/atom/string/sse2-memchr-atom.S",
|
|
|
|
"arch-x86/atom/string/sse2-memrchr-atom.S",
|
|
|
|
"arch-x86/atom/string/sse2-strchr-atom.S",
|
|
|
|
"arch-x86/atom/string/sse2-strnlen-atom.S",
|
|
|
|
"arch-x86/atom/string/sse2-strrchr-atom.S",
|
|
|
|
"arch-x86/atom/string/sse2-wcschr-atom.S",
|
|
|
|
"arch-x86/atom/string/sse2-wcsrchr-atom.S",
|
|
|
|
"arch-x86/atom/string/sse2-wcslen-atom.S",
|
|
|
|
"arch-x86/atom/string/sse2-wcscmp-atom.S",
|
|
|
|
"arch-x86/silvermont/string/sse2-memcpy-slm.S",
|
|
|
|
"arch-x86/silvermont/string/sse2-memmove-slm.S",
|
|
|
|
"arch-x86/silvermont/string/sse2-memset-slm.S",
|
|
|
|
"arch-x86/silvermont/string/sse2-stpcpy-slm.S",
|
|
|
|
"arch-x86/silvermont/string/sse2-stpncpy-slm.S",
|
|
|
|
"arch-x86/silvermont/string/sse2-strcpy-slm.S",
|
|
|
|
"arch-x86/silvermont/string/sse2-strlen-slm.S",
|
|
|
|
"arch-x86/silvermont/string/sse2-strncpy-slm.S",
|
2016-02-04 06:48:08 +01:00
|
|
|
|
|
|
|
"arch-x86/bionic/__bionic_clone.S",
|
|
|
|
"arch-x86/bionic/_exit_with_stack_teardown.S",
|
|
|
|
"arch-x86/bionic/libgcc_compat.c",
|
|
|
|
"arch-x86/bionic/__restore.S",
|
|
|
|
"arch-x86/bionic/setjmp.S",
|
|
|
|
"arch-x86/bionic/syscall.S",
|
|
|
|
"arch-x86/bionic/vfork.S",
|
2015-09-17 01:33:27 +02:00
|
|
|
],
|
2015-10-15 23:49:45 +02:00
|
|
|
|
|
|
|
exclude_srcs: [
|
|
|
|
"bionic/strchr.cpp",
|
|
|
|
"bionic/strnlen.c",
|
|
|
|
"bionic/strrchr.cpp",
|
|
|
|
],
|
2015-11-23 23:12:15 +01:00
|
|
|
atom: {
|
|
|
|
srcs: [
|
|
|
|
"arch-x86/atom/string/sse2-memset-atom.S",
|
|
|
|
"arch-x86/atom/string/sse2-strlen-atom.S",
|
|
|
|
"arch-x86/atom/string/ssse3-memcmp-atom.S",
|
2016-01-13 04:35:40 +01:00
|
|
|
"arch-x86/atom/string/ssse3-memcpy-atom.S",
|
2015-11-23 23:12:15 +01:00
|
|
|
"arch-x86/atom/string/ssse3-memmove-atom.S",
|
2016-01-13 04:35:40 +01:00
|
|
|
"arch-x86/atom/string/ssse3-strcpy-atom.S",
|
2015-11-23 23:12:15 +01:00
|
|
|
"arch-x86/atom/string/ssse3-strncpy-atom.S",
|
|
|
|
"arch-x86/atom/string/ssse3-wmemcmp-atom.S",
|
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"arch-x86/generic/string/memcmp.S",
|
|
|
|
"arch-x86/silvermont/string/sse2-memcpy-slm.S",
|
|
|
|
"arch-x86/silvermont/string/sse2-memmove-slm.S",
|
|
|
|
"arch-x86/silvermont/string/sse2-memset-slm.S",
|
|
|
|
"arch-x86/silvermont/string/sse2-strcpy-slm.S",
|
|
|
|
"arch-x86/silvermont/string/sse2-strlen-slm.S",
|
|
|
|
"arch-x86/silvermont/string/sse2-strncpy-slm.S",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
ssse3: {
|
|
|
|
srcs: [
|
|
|
|
"arch-x86/atom/string/ssse3-strncat-atom.S",
|
|
|
|
"arch-x86/atom/string/ssse3-strlcat-atom.S",
|
|
|
|
"arch-x86/atom/string/ssse3-strlcpy-atom.S",
|
|
|
|
"arch-x86/atom/string/ssse3-strcat-atom.S",
|
|
|
|
"arch-x86/atom/string/ssse3-strcmp-atom.S",
|
|
|
|
"arch-x86/atom/string/ssse3-strncmp-atom.S",
|
|
|
|
"arch-x86/atom/string/ssse3-wcscat-atom.S",
|
|
|
|
"arch-x86/atom/string/ssse3-wcscpy-atom.S",
|
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"arch-x86/generic/string/strcmp.S",
|
|
|
|
"arch-x86/generic/string/strncmp.S",
|
|
|
|
"arch-x86/generic/string/strcat.S",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
sse4: {
|
|
|
|
srcs: [
|
|
|
|
"arch-x86/silvermont/string/sse4-memcmp-slm.S",
|
|
|
|
"arch-x86/silvermont/string/sse4-wmemcmp-slm.S",
|
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"arch-x86/generic/string/memcmp.S",
|
|
|
|
],
|
|
|
|
},
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
x86_64: {
|
|
|
|
srcs: [
|
|
|
|
"arch-x86_64/string/sse2-memcpy-slm.S",
|
|
|
|
"arch-x86_64/string/sse2-memmove-slm.S",
|
|
|
|
"arch-x86_64/string/sse2-memset-slm.S",
|
|
|
|
"arch-x86_64/string/sse2-stpcpy-slm.S",
|
|
|
|
"arch-x86_64/string/sse2-stpncpy-slm.S",
|
|
|
|
"arch-x86_64/string/sse2-strcat-slm.S",
|
|
|
|
"arch-x86_64/string/sse2-strcpy-slm.S",
|
|
|
|
"arch-x86_64/string/sse2-strlcat-slm.S",
|
|
|
|
"arch-x86_64/string/sse2-strlcpy-slm.S",
|
|
|
|
"arch-x86_64/string/sse2-strlen-slm.S",
|
|
|
|
"arch-x86_64/string/sse2-strncat-slm.S",
|
|
|
|
"arch-x86_64/string/sse2-strncpy-slm.S",
|
|
|
|
"arch-x86_64/string/sse4-memcmp-slm.S",
|
|
|
|
"arch-x86_64/string/ssse3-strcmp-slm.S",
|
|
|
|
"arch-x86_64/string/ssse3-strncmp-slm.S",
|
2016-02-04 06:48:08 +01:00
|
|
|
|
|
|
|
"arch-x86_64/bionic/__bionic_clone.S",
|
|
|
|
"arch-x86_64/bionic/_exit_with_stack_teardown.S",
|
|
|
|
"arch-x86_64/bionic/__restore_rt.S",
|
|
|
|
"arch-x86_64/bionic/setjmp.S",
|
|
|
|
"arch-x86_64/bionic/syscall.S",
|
|
|
|
"arch-x86_64/bionic/vfork.S",
|
2015-09-17 01:33:27 +02:00
|
|
|
],
|
|
|
|
},
|
2015-10-15 23:49:45 +02:00
|
|
|
},
|
2015-09-17 01:33:27 +02:00
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
cppflags: ["-Wold-style-cast"],
|
2015-10-15 23:49:45 +02:00
|
|
|
include_dirs: ["bionic/libstdc++/include"],
|
|
|
|
name: "libc_bionic",
|
|
|
|
}
|
|
|
|
|
|
|
|
// ========================================================
|
|
|
|
// libc_bionic_ndk.a- The portions of libc_bionic that can
|
|
|
|
// be safely used in libc_ndk.a (no troublesome global data
|
|
|
|
// or constructors).
|
|
|
|
// ========================================================
|
|
|
|
cc_library_static {
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["libc_defaults"],
|
2015-10-15 23:49:45 +02:00
|
|
|
srcs: [
|
|
|
|
"bionic/abort.cpp",
|
|
|
|
"bionic/accept.cpp",
|
|
|
|
"bionic/accept4.cpp",
|
|
|
|
"bionic/access.cpp",
|
|
|
|
"bionic/arpa_inet.cpp",
|
|
|
|
"bionic/assert.cpp",
|
|
|
|
"bionic/atof.cpp",
|
2016-01-19 21:50:20 +01:00
|
|
|
"bionic/bionic_netlink.cpp",
|
2015-10-15 23:49:45 +02:00
|
|
|
"bionic/bionic_systrace.cpp",
|
|
|
|
"bionic/bionic_time_conversions.cpp",
|
|
|
|
"bionic/brk.cpp",
|
|
|
|
"bionic/c16rtomb.cpp",
|
|
|
|
"bionic/c32rtomb.cpp",
|
|
|
|
"bionic/chmod.cpp",
|
|
|
|
"bionic/chown.cpp",
|
|
|
|
"bionic/clearenv.cpp",
|
|
|
|
"bionic/clock.cpp",
|
|
|
|
"bionic/clock_getcpuclockid.cpp",
|
|
|
|
"bionic/clock_nanosleep.cpp",
|
|
|
|
"bionic/clone.cpp",
|
|
|
|
"bionic/close.cpp",
|
|
|
|
"bionic/__cmsg_nxthdr.cpp",
|
|
|
|
"bionic/connect.cpp",
|
|
|
|
"bionic/ctype.cpp",
|
|
|
|
"bionic/dirent.cpp",
|
|
|
|
"bionic/dup2.cpp",
|
|
|
|
"bionic/epoll_create.cpp",
|
|
|
|
"bionic/epoll_pwait.cpp",
|
|
|
|
"bionic/epoll_wait.cpp",
|
|
|
|
"bionic/__errno.cpp",
|
|
|
|
"bionic/error.cpp",
|
|
|
|
"bionic/eventfd_read.cpp",
|
|
|
|
"bionic/eventfd_write.cpp",
|
|
|
|
"bionic/faccessat.cpp",
|
|
|
|
"bionic/fchmod.cpp",
|
|
|
|
"bionic/fchmodat.cpp",
|
|
|
|
"bionic/ffs.cpp",
|
|
|
|
"bionic/fgetxattr.cpp",
|
|
|
|
"bionic/flistxattr.cpp",
|
|
|
|
"bionic/flockfile.cpp",
|
2016-02-29 19:37:56 +01:00
|
|
|
"bionic/fortify.cpp",
|
2015-10-15 23:49:45 +02:00
|
|
|
"bionic/fpclassify.cpp",
|
|
|
|
"bionic/fsetxattr.cpp",
|
|
|
|
"bionic/ftruncate.cpp",
|
2016-04-16 02:40:33 +02:00
|
|
|
"bionic/ftw.cpp",
|
2015-10-15 23:49:45 +02:00
|
|
|
"bionic/futimens.cpp",
|
|
|
|
"bionic/getcwd.cpp",
|
2016-03-30 00:21:38 +02:00
|
|
|
"bionic/getdomainname.cpp",
|
2015-10-15 23:49:45 +02:00
|
|
|
"bionic/gethostname.cpp",
|
2016-04-06 17:34:58 +02:00
|
|
|
"bionic/getpagesize.cpp",
|
2015-10-15 23:49:45 +02:00
|
|
|
"bionic/getpgrp.cpp",
|
|
|
|
"bionic/getpid.cpp",
|
|
|
|
"bionic/gettid.cpp",
|
|
|
|
"bionic/__gnu_basename.cpp",
|
2016-04-05 18:09:46 +02:00
|
|
|
"bionic/grp_pwd.cpp",
|
2016-01-05 23:32:06 +01:00
|
|
|
"bionic/ifaddrs.cpp",
|
2015-10-15 23:49:45 +02:00
|
|
|
"bionic/inotify_init.cpp",
|
2015-11-09 23:03:46 +01:00
|
|
|
"bionic/ioctl.cpp",
|
2015-10-15 23:49:45 +02:00
|
|
|
"bionic/lchown.cpp",
|
|
|
|
"bionic/lfs64_support.cpp",
|
|
|
|
"bionic/__libc_current_sigrtmax.cpp",
|
|
|
|
"bionic/__libc_current_sigrtmin.cpp",
|
|
|
|
"bionic/libc_init_common.cpp",
|
|
|
|
"bionic/libc_logging.cpp",
|
|
|
|
"bionic/libgen.cpp",
|
|
|
|
"bionic/link.cpp",
|
|
|
|
"bionic/locale.cpp",
|
2016-02-04 06:48:08 +01:00
|
|
|
"bionic/lockf.cpp",
|
2015-10-15 23:49:45 +02:00
|
|
|
"bionic/lstat.cpp",
|
|
|
|
"bionic/malloc_info.cpp",
|
2016-04-29 23:06:07 +02:00
|
|
|
"bionic/mblen.cpp",
|
2015-10-15 23:49:45 +02:00
|
|
|
"bionic/mbrtoc16.cpp",
|
|
|
|
"bionic/mbrtoc32.cpp",
|
|
|
|
"bionic/mbstate.cpp",
|
|
|
|
"bionic/mempcpy.cpp",
|
|
|
|
"bionic/mkdir.cpp",
|
|
|
|
"bionic/mkfifo.cpp",
|
|
|
|
"bionic/mknod.cpp",
|
|
|
|
"bionic/mntent.cpp",
|
2015-11-09 23:03:46 +01:00
|
|
|
"bionic/mremap.cpp",
|
2016-04-06 17:34:58 +02:00
|
|
|
"bionic/netdb.cpp",
|
2015-10-15 23:49:45 +02:00
|
|
|
"bionic/NetdClientDispatch.cpp",
|
2016-01-19 21:50:20 +01:00
|
|
|
"bionic/net_if.cpp",
|
2016-02-04 06:48:08 +01:00
|
|
|
"bionic/netinet_in.cpp",
|
2016-04-07 02:14:45 +02:00
|
|
|
"bionic/nl_types.cpp",
|
2015-10-15 23:49:45 +02:00
|
|
|
"bionic/open.cpp",
|
|
|
|
"bionic/pathconf.cpp",
|
|
|
|
"bionic/pause.cpp",
|
|
|
|
"bionic/pipe.cpp",
|
|
|
|
"bionic/poll.cpp",
|
|
|
|
"bionic/posix_fadvise.cpp",
|
|
|
|
"bionic/posix_fallocate.cpp",
|
|
|
|
"bionic/posix_madvise.cpp",
|
|
|
|
"bionic/posix_timers.cpp",
|
|
|
|
"bionic/ptrace.cpp",
|
|
|
|
"bionic/pty.cpp",
|
|
|
|
"bionic/raise.cpp",
|
|
|
|
"bionic/rand.cpp",
|
|
|
|
"bionic/readlink.cpp",
|
|
|
|
"bionic/reboot.cpp",
|
|
|
|
"bionic/recv.cpp",
|
|
|
|
"bionic/rename.cpp",
|
|
|
|
"bionic/rmdir.cpp",
|
|
|
|
"bionic/scandir.cpp",
|
|
|
|
"bionic/sched_getaffinity.cpp",
|
|
|
|
"bionic/sched_getcpu.cpp",
|
|
|
|
"bionic/semaphore.cpp",
|
|
|
|
"bionic/send.cpp",
|
|
|
|
"bionic/setegid.cpp",
|
|
|
|
"bionic/__set_errno.cpp",
|
|
|
|
"bionic/seteuid.cpp",
|
|
|
|
"bionic/setpgrp.cpp",
|
|
|
|
"bionic/sigaction.cpp",
|
|
|
|
"bionic/sigaddset.cpp",
|
|
|
|
"bionic/sigdelset.cpp",
|
|
|
|
"bionic/sigemptyset.cpp",
|
|
|
|
"bionic/sigfillset.cpp",
|
2016-04-07 22:24:50 +02:00
|
|
|
"bionic/sighold.cpp",
|
|
|
|
"bionic/sigignore.cpp",
|
2015-10-15 23:49:45 +02:00
|
|
|
"bionic/sigismember.cpp",
|
|
|
|
"bionic/signal.cpp",
|
|
|
|
"bionic/signalfd.cpp",
|
2016-04-07 22:24:50 +02:00
|
|
|
"bionic/sigpause.cpp",
|
2015-10-15 23:49:45 +02:00
|
|
|
"bionic/sigpending.cpp",
|
|
|
|
"bionic/sigprocmask.cpp",
|
|
|
|
"bionic/sigqueue.cpp",
|
2016-04-07 22:24:50 +02:00
|
|
|
"bionic/sigrelse.cpp",
|
|
|
|
"bionic/sigset.cpp",
|
2015-10-15 23:49:45 +02:00
|
|
|
"bionic/sigsuspend.cpp",
|
|
|
|
"bionic/sigtimedwait.cpp",
|
|
|
|
"bionic/sigwait.cpp",
|
|
|
|
"bionic/sigwaitinfo.cpp",
|
|
|
|
"bionic/socket.cpp",
|
|
|
|
"bionic/stat.cpp",
|
|
|
|
"bionic/statvfs.cpp",
|
|
|
|
"bionic/strchrnul.cpp",
|
|
|
|
"bionic/strerror.cpp",
|
|
|
|
"bionic/strerror_r.cpp",
|
|
|
|
"bionic/strsignal.cpp",
|
|
|
|
"bionic/strtold.cpp",
|
|
|
|
"bionic/symlink.cpp",
|
2016-04-11 23:51:38 +02:00
|
|
|
"bionic/sync_file_range.cpp",
|
2015-10-15 23:49:45 +02:00
|
|
|
"bionic/sysinfo.cpp",
|
|
|
|
"bionic/syslog.cpp",
|
|
|
|
"bionic/sys_siglist.c",
|
|
|
|
"bionic/sys_signame.c",
|
2016-06-09 04:51:20 +02:00
|
|
|
"bionic/sys_time.cpp",
|
2015-10-15 23:49:45 +02:00
|
|
|
"bionic/system_properties.cpp",
|
|
|
|
"bionic/tdestroy.cpp",
|
|
|
|
"bionic/termios.cpp",
|
|
|
|
"bionic/thread_private.cpp",
|
|
|
|
"bionic/tmpfile.cpp",
|
|
|
|
"bionic/umount.cpp",
|
|
|
|
"bionic/unlink.cpp",
|
|
|
|
"bionic/wait.cpp",
|
|
|
|
"bionic/wchar.cpp",
|
|
|
|
"bionic/wctype.cpp",
|
|
|
|
"bionic/wmempcpy.cpp",
|
|
|
|
],
|
2015-11-01 07:03:05 +01:00
|
|
|
cflags: ["-Wframe-larger-than=2048"],
|
2015-10-15 23:49:45 +02:00
|
|
|
|
2015-09-17 01:33:27 +02:00
|
|
|
multilib: {
|
|
|
|
lib32: {
|
|
|
|
// LP32 cruft
|
2015-11-23 23:12:15 +01:00
|
|
|
srcs: ["bionic/mmap.cpp"],
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
cppflags: ["-Wold-style-cast"],
|
2015-09-17 01:33:27 +02:00
|
|
|
local_include_dirs: ["stdio"],
|
|
|
|
include_dirs: ["bionic/libstdc++/include"],
|
|
|
|
name: "libc_bionic_ndk",
|
|
|
|
}
|
|
|
|
|
|
|
|
// ========================================================
|
|
|
|
// libc_pthread.a - pthreads parts that previously lived in
|
|
|
|
// libc_bionic.a. Relocated to their own library because
|
|
|
|
// they can't be included in libc_ndk.a (as they layout of
|
|
|
|
// pthread_t has changed over the years and has ABI
|
|
|
|
// compatibility issues).
|
|
|
|
// ========================================================
|
|
|
|
|
|
|
|
cc_library_static {
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["libc_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
srcs: [
|
|
|
|
"bionic/pthread_atfork.cpp",
|
|
|
|
"bionic/pthread_attr.cpp",
|
2015-11-19 22:32:49 +01:00
|
|
|
"bionic/pthread_barrier.cpp",
|
2015-09-17 01:33:27 +02:00
|
|
|
"bionic/pthread_cond.cpp",
|
|
|
|
"bionic/pthread_create.cpp",
|
|
|
|
"bionic/pthread_detach.cpp",
|
|
|
|
"bionic/pthread_equal.cpp",
|
|
|
|
"bionic/pthread_exit.cpp",
|
|
|
|
"bionic/pthread_getcpuclockid.cpp",
|
|
|
|
"bionic/pthread_getschedparam.cpp",
|
|
|
|
"bionic/pthread_gettid_np.cpp",
|
|
|
|
"bionic/pthread_internal.cpp",
|
|
|
|
"bionic/pthread_join.cpp",
|
|
|
|
"bionic/pthread_key.cpp",
|
|
|
|
"bionic/pthread_kill.cpp",
|
|
|
|
"bionic/pthread_mutex.cpp",
|
|
|
|
"bionic/pthread_once.cpp",
|
|
|
|
"bionic/pthread_rwlock.cpp",
|
|
|
|
"bionic/pthread_self.cpp",
|
|
|
|
"bionic/pthread_setname_np.cpp",
|
|
|
|
"bionic/pthread_setschedparam.cpp",
|
|
|
|
"bionic/pthread_sigmask.cpp",
|
2015-11-19 22:32:49 +01:00
|
|
|
"bionic/pthread_spinlock.cpp",
|
2015-09-17 01:33:27 +02:00
|
|
|
],
|
2015-11-01 07:03:05 +01:00
|
|
|
cflags: ["-Wframe-larger-than=2048"],
|
2015-09-17 01:33:27 +02:00
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
cppflags: ["-Wold-style-cast"],
|
2015-09-17 01:33:27 +02:00
|
|
|
include_dirs: ["bionic/libstdc++/include"],
|
|
|
|
name: "libc_pthread",
|
|
|
|
}
|
|
|
|
|
|
|
|
// ========================================================
|
|
|
|
// libc_syscalls.a
|
|
|
|
// ========================================================
|
|
|
|
|
|
|
|
cc_library_static {
|
2016-04-07 22:27:24 +02:00
|
|
|
defaults: ["libc_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
arch: {
|
|
|
|
arm: {
|
|
|
|
srcs: ["arch-arm/syscalls/**/*.S"],
|
|
|
|
},
|
|
|
|
arm64: {
|
|
|
|
srcs: ["arch-arm64/syscalls/**/*.S"],
|
|
|
|
},
|
|
|
|
mips: {
|
|
|
|
srcs: ["arch-mips/syscalls/**/*.S"],
|
|
|
|
},
|
|
|
|
mips64: {
|
|
|
|
srcs: ["arch-mips64/syscalls/**/*.S"],
|
|
|
|
},
|
|
|
|
x86: {
|
|
|
|
srcs: ["arch-x86/syscalls/**/*.S"],
|
|
|
|
},
|
|
|
|
x86_64: {
|
|
|
|
srcs: ["arch-x86_64/syscalls/**/*.S"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
name: "libc_syscalls",
|
|
|
|
}
|
|
|
|
|
|
|
|
// ========================================================
|
|
|
|
// libc_aeabi.a
|
|
|
|
// This is an LP32 ARM-only library that needs to be built with -fno-builtin
|
|
|
|
// to avoid infinite recursion. For the other architectures we just build an
|
|
|
|
// empty library to keep this makefile simple.
|
|
|
|
// ========================================================
|
|
|
|
|
|
|
|
cc_library_static {
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["libc_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
arch: {
|
|
|
|
arm: {
|
|
|
|
srcs: ["arch-arm/bionic/__aeabi.c"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
name: "libc_aeabi",
|
2015-11-01 07:03:05 +01:00
|
|
|
cflags: ["-fno-builtin"],
|
2015-09-17 01:33:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ========================================================
|
|
|
|
// libc_ndk.a
|
|
|
|
// Compatibility library for the NDK. This library contains
|
|
|
|
// all the parts of libc that are safe to statically link.
|
|
|
|
// We can't safely statically link things that can only run
|
|
|
|
// on a certain version of the OS. Examples include
|
|
|
|
// anything that talks to netd (a large portion of the DNS
|
|
|
|
// code) and anything that is dependent on the layout of a
|
|
|
|
// data structure that has changed across releases (such as
|
|
|
|
// pthread_t).
|
|
|
|
// ========================================================
|
|
|
|
|
|
|
|
cc_library_static {
|
|
|
|
name: "libc_ndk",
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["libc_defaults"],
|
2016-02-04 06:48:08 +01:00
|
|
|
srcs: libc_common_src_files + ["bionic/malloc_common.cpp"],
|
2015-09-17 01:33:27 +02:00
|
|
|
multilib: {
|
|
|
|
lib32: {
|
|
|
|
srcs: libc_common_src_files_32,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
arch: {
|
|
|
|
arm: {
|
|
|
|
srcs: [
|
|
|
|
"arch-arm/bionic/exidx_dynamic.c",
|
|
|
|
"arch-common/bionic/crtbegin_so.c",
|
|
|
|
"arch-arm/bionic/atexit_legacy.c",
|
|
|
|
"arch-common/bionic/crtend_so.S",
|
|
|
|
],
|
|
|
|
whole_static_libs: ["libc_aeabi"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
cflags: [
|
2015-09-17 01:33:27 +02:00
|
|
|
"-fvisibility=hidden",
|
|
|
|
"-DLIBC_STATIC",
|
|
|
|
],
|
|
|
|
|
|
|
|
whole_static_libs: [
|
|
|
|
"libc_bionic_ndk",
|
|
|
|
"libc_freebsd",
|
|
|
|
"libc_gdtoa",
|
|
|
|
"libc_malloc",
|
|
|
|
"libc_netbsd",
|
|
|
|
"libc_openbsd_ndk",
|
|
|
|
"libc_stack_protector",
|
|
|
|
"libc_syscalls",
|
|
|
|
"libc_tzcode",
|
|
|
|
"libm",
|
2016-02-04 06:48:08 +01:00
|
|
|
"libjemalloc",
|
2016-05-28 02:57:46 +02:00
|
|
|
"libstdc++",
|
2015-09-17 01:33:27 +02:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
// ========================================================
|
|
|
|
// libc_common.a
|
|
|
|
// ========================================================
|
|
|
|
|
|
|
|
cc_library_static {
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["libc_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
srcs: libc_common_src_files,
|
|
|
|
multilib: {
|
|
|
|
lib32: {
|
|
|
|
srcs: libc_common_src_files_32,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
name: "libc_common",
|
|
|
|
|
|
|
|
whole_static_libs: [
|
|
|
|
"libc_bionic",
|
|
|
|
"libc_bionic_ndk",
|
|
|
|
"libc_dns",
|
|
|
|
"libc_freebsd",
|
|
|
|
"libc_gdtoa",
|
|
|
|
"libc_malloc",
|
|
|
|
"libc_netbsd",
|
|
|
|
"libc_openbsd",
|
|
|
|
"libc_openbsd_ndk",
|
|
|
|
"libc_pthread",
|
|
|
|
"libc_stack_protector",
|
|
|
|
"libc_syscalls",
|
|
|
|
"libc_tzcode",
|
2016-05-28 02:57:46 +02:00
|
|
|
"libstdc++",
|
2015-09-17 01:33:27 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
arch: {
|
|
|
|
arm: {
|
|
|
|
whole_static_libs: ["libc_aeabi"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
// ========================================================
|
|
|
|
// libc_nomalloc.a
|
|
|
|
// ========================================================
|
|
|
|
//
|
|
|
|
// This is a version of the static C library that does not
|
|
|
|
// include malloc. It's useful in situations when the user wants
|
|
|
|
// to provide their own malloc implementation, or wants to
|
|
|
|
// explicitly disallow the use of malloc, such as in the
|
|
|
|
// dynamic linker.
|
|
|
|
|
|
|
|
cc_library_static {
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["libc_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
srcs: [
|
|
|
|
"bionic/dl_iterate_phdr_static.cpp",
|
|
|
|
],
|
|
|
|
|
|
|
|
arch: {
|
|
|
|
arm: {
|
|
|
|
srcs: ["arch-arm/bionic/exidx_static.c"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
cflags: ["-DLIBC_STATIC"],
|
2015-09-17 01:33:27 +02:00
|
|
|
|
|
|
|
name: "libc_nomalloc",
|
|
|
|
|
2016-01-11 22:20:55 +01:00
|
|
|
whole_static_libs: [
|
|
|
|
"libc_common",
|
|
|
|
"libc_init_static",
|
|
|
|
],
|
2015-09-17 01:33:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ========================================================
|
|
|
|
// libc_malloc.a: the _prefixed_ malloc functions (like dlcalloc).
|
|
|
|
// ========================================================
|
|
|
|
cc_library_static {
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["libc_defaults"],
|
2016-02-04 06:48:08 +01:00
|
|
|
srcs: ["bionic/jemalloc_wrapper.cpp"],
|
2015-11-01 07:03:05 +01:00
|
|
|
cflags: ["-fvisibility=hidden"],
|
2015-09-17 01:33:27 +02:00
|
|
|
|
|
|
|
name: "libc_malloc",
|
|
|
|
}
|
|
|
|
|
|
|
|
// ========================================================
|
|
|
|
// libc.a + libc.so
|
|
|
|
// ========================================================
|
|
|
|
cc_library {
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["libc_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
name: "libc",
|
2015-11-01 07:03:05 +01:00
|
|
|
product_variables: {
|
2015-09-17 01:33:27 +02:00
|
|
|
platform_sdk_version: {
|
|
|
|
asflags: ["-DPLATFORM_SDK_VERSION=%d"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
static: {
|
|
|
|
srcs: [
|
|
|
|
"bionic/dl_iterate_phdr_static.cpp",
|
2016-05-12 10:43:07 +02:00
|
|
|
"bionic/malloc_common.cpp",
|
2016-02-04 06:48:08 +01:00
|
|
|
"bionic/libc_init_static.cpp",
|
2015-09-17 01:33:27 +02:00
|
|
|
],
|
|
|
|
cflags: ["-DLIBC_STATIC"],
|
2016-05-12 10:43:07 +02:00
|
|
|
whole_static_libs: ["libc_init_static", "libjemalloc"],
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
shared: {
|
|
|
|
srcs: [
|
|
|
|
"arch-common/bionic/crtbegin_so.c",
|
|
|
|
"arch-common/bionic/crtbrand.S",
|
2016-05-12 10:43:07 +02:00
|
|
|
"bionic/malloc_common.cpp",
|
2015-09-17 01:33:27 +02:00
|
|
|
"bionic/libc_init_dynamic.cpp",
|
|
|
|
"bionic/NetdClient.cpp",
|
|
|
|
"arch-common/bionic/crtend_so.S",
|
|
|
|
],
|
2016-05-12 10:43:07 +02:00
|
|
|
whole_static_libs: ["libjemalloc"],
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
required: ["tzdata"],
|
|
|
|
|
|
|
|
// Leave the symbols in the shared library so that stack unwinders can produce
|
|
|
|
// meaningful name resolution.
|
2016-04-25 23:09:13 +02:00
|
|
|
strip: {
|
|
|
|
keep_symbols: true,
|
|
|
|
},
|
2015-09-17 01:33:27 +02:00
|
|
|
|
|
|
|
// WARNING: The only library libc.so should depend on is libdl.so! If you add other libraries,
|
|
|
|
// make sure to add -Wl,--exclude-libs=libgcc.a to the LOCAL_LDFLAGS for those libraries. This
|
|
|
|
// ensures that symbols that are pulled into those new libraries from libgcc.a are not declared
|
|
|
|
// external; if that were the case, then libc would not pull those symbols from libgcc.a as it
|
|
|
|
// should, instead relying on the external symbols from the dependent libraries. That would
|
|
|
|
// create a "cloaked" dependency on libgcc.a in libc though the libraries, which is not what
|
|
|
|
// you wanted!
|
|
|
|
|
|
|
|
shared_libs: ["libdl"],
|
2016-05-12 10:43:07 +02:00
|
|
|
whole_static_libs: ["libc_common"],
|
2015-09-17 01:33:27 +02:00
|
|
|
|
|
|
|
nocrt: true,
|
|
|
|
|
|
|
|
arch: {
|
|
|
|
arm: {
|
2015-09-28 19:14:17 +02:00
|
|
|
//TODO: This is to work around b/24465209. Remove after root cause is fixed
|
2015-09-17 01:33:27 +02:00
|
|
|
ldflags: ["-Wl,--hash-style=both"],
|
|
|
|
|
2015-11-03 23:30:57 +01:00
|
|
|
// Don't re-export new/delete and friends, even if the compiler really wants to.
|
|
|
|
version_script: "libc.arm.map",
|
|
|
|
|
2015-09-17 01:33:27 +02:00
|
|
|
shared: {
|
2016-05-12 10:43:07 +02:00
|
|
|
srcs: [
|
|
|
|
"arch-arm/bionic/exidx_dynamic.c",
|
|
|
|
|
|
|
|
// special for arm
|
|
|
|
"arch-arm/bionic/atexit_legacy.c",
|
|
|
|
],
|
|
|
|
// special for arm
|
|
|
|
cflags: ["-DCRT_LEGACY_WORKAROUND"],
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
static: {
|
|
|
|
srcs: ["arch-arm/bionic/exidx_static.c"],
|
|
|
|
},
|
|
|
|
},
|
2015-11-03 23:30:57 +01:00
|
|
|
arm64: {
|
|
|
|
// Don't re-export new/delete and friends, even if the compiler really wants to.
|
|
|
|
version_script: "libc.arm64.map",
|
|
|
|
},
|
|
|
|
mips: {
|
|
|
|
// Don't re-export new/delete and friends, even if the compiler really wants to.
|
|
|
|
version_script: "libc.mips.map",
|
|
|
|
},
|
|
|
|
mips64: {
|
|
|
|
// Don't re-export new/delete and friends, even if the compiler really wants to.
|
|
|
|
version_script: "libc.mips64.map",
|
|
|
|
},
|
2015-09-17 01:33:27 +02:00
|
|
|
x86: {
|
2015-09-28 19:14:17 +02:00
|
|
|
//TODO: This is to work around b/24465209. Remove after root cause is fixed
|
2015-09-17 01:33:27 +02:00
|
|
|
ldflags: ["-Wl,--hash-style=both"],
|
2015-11-03 23:30:57 +01:00
|
|
|
|
|
|
|
// Don't re-export new/delete and friends, even if the compiler really wants to.
|
|
|
|
version_script: "libc.x86.map",
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
x86_64: {
|
2015-11-03 23:30:57 +01:00
|
|
|
// Don't re-export new/delete and friends, even if the compiler really wants to.
|
|
|
|
version_script: "libc.x86_64.map",
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
// ========================================================
|
2016-02-04 06:48:08 +01:00
|
|
|
// libc_logging.a
|
2015-09-17 01:33:27 +02:00
|
|
|
// ========================================================
|
2016-02-04 06:48:08 +01:00
|
|
|
cc_library_static {
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["libc_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
|
|
|
|
srcs: [
|
|
|
|
"bionic/libc_logging.cpp",
|
|
|
|
],
|
|
|
|
|
2016-02-04 06:48:08 +01:00
|
|
|
name: "libc_logging",
|
2015-09-17 01:33:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// ========================================================
|
|
|
|
// libstdc++.so + libstdc++.a
|
|
|
|
// ========================================================
|
|
|
|
cc_library {
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["libc_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
include_dirs: ["bionic/libstdc++/include"],
|
|
|
|
srcs: [
|
|
|
|
"bionic/__cxa_guard.cpp",
|
|
|
|
"bionic/__cxa_pure_virtual.cpp",
|
|
|
|
"bionic/new.cpp",
|
|
|
|
],
|
|
|
|
name: "libstdc++",
|
|
|
|
system_shared_libs: ["libc"],
|
2016-02-04 06:48:08 +01:00
|
|
|
shared: {
|
|
|
|
static_libs: ["libc_logging"],
|
|
|
|
},
|
2015-09-17 01:33:27 +02:00
|
|
|
|
2016-07-28 22:52:17 +02:00
|
|
|
//TODO (dimitry): This is to work around b/24465209. Remove after root cause is fixed
|
2015-09-17 01:33:27 +02:00
|
|
|
arch: {
|
|
|
|
arm: {
|
|
|
|
ldflags: ["-Wl,--hash-style=both"],
|
2016-07-28 22:52:17 +02:00
|
|
|
version_script: "libstdc++.arm.map",
|
|
|
|
},
|
|
|
|
arm64: {
|
|
|
|
version_script: "libstdc++.arm64.map",
|
|
|
|
},
|
|
|
|
mips: {
|
|
|
|
version_script: "libstdc++.mips.map",
|
|
|
|
},
|
|
|
|
mips64: {
|
|
|
|
version_script: "libstdc++.mips64.map",
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
x86: {
|
|
|
|
ldflags: ["-Wl,--hash-style=both"],
|
2016-07-28 22:52:17 +02:00
|
|
|
version_script: "libstdc++.x86.map",
|
|
|
|
},
|
|
|
|
x86_64: {
|
|
|
|
version_script: "libstdc++.x86_64.map",
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
cc_defaults {
|
|
|
|
name: "crt_defaults",
|
|
|
|
|
|
|
|
no_default_compiler_flags: true,
|
|
|
|
|
|
|
|
arch: {
|
|
|
|
arm: {
|
|
|
|
local_include_dirs: ["arch-arm/include"],
|
|
|
|
},
|
|
|
|
arm64: {
|
|
|
|
local_include_dirs: ["arch-arm64/include"],
|
|
|
|
},
|
|
|
|
mips: {
|
|
|
|
local_include_dirs: ["arch-mips/include"],
|
|
|
|
},
|
|
|
|
mips64: {
|
|
|
|
local_include_dirs: ["arch-mips64/include"],
|
|
|
|
},
|
|
|
|
x86: {
|
|
|
|
local_include_dirs: ["arch-x86/include"],
|
|
|
|
},
|
|
|
|
x86_64: {
|
|
|
|
local_include_dirs: ["arch-x86_64/include"],
|
|
|
|
},
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
2015-11-23 23:12:19 +01:00
|
|
|
clang: false,
|
2015-09-17 01:33:27 +02:00
|
|
|
}
|
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
cc_defaults {
|
|
|
|
name: "crt_so_defaults",
|
|
|
|
|
|
|
|
arch: {
|
|
|
|
mips: {
|
|
|
|
cflags: ["-fPIC"],
|
|
|
|
},
|
|
|
|
mips64: {
|
|
|
|
cflags: ["-fPIC"],
|
|
|
|
},
|
|
|
|
x86: {
|
|
|
|
cflags: ["-fPIC"],
|
|
|
|
},
|
|
|
|
x86_64: {
|
|
|
|
cflags: ["-fPIC"],
|
|
|
|
},
|
2015-09-17 01:33:27 +02:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
// Android.mk:start
|
|
|
|
// # crt obj files
|
|
|
|
// # ========================================================
|
|
|
|
// # crtbrand.c needs <stdint.h> and a #define for the platform SDK version.
|
|
|
|
// libc_crt_target_cflags := \
|
|
|
|
// -I$(LOCAL_PATH)/include \
|
|
|
|
// -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) \
|
|
|
|
//
|
|
|
|
// my_2nd_arch_prefix :=
|
|
|
|
// include $(LOCAL_PATH)/arch-$(TARGET_ARCH)/$(TARGET_ARCH).mk
|
|
|
|
// include $(LOCAL_PATH)/crt.mk
|
|
|
|
// ifdef TARGET_2ND_ARCH
|
|
|
|
// my_2nd_arch_prefix := $(TARGET_2ND_ARCH_VAR_PREFIX)
|
|
|
|
// include $(LOCAL_PATH)/arch-$(TARGET_2ND_ARCH)/$(TARGET_2ND_ARCH).mk
|
|
|
|
// include $(LOCAL_PATH)/crt.mk
|
|
|
|
// my_2nd_arch_prefix :=
|
|
|
|
// endif
|
|
|
|
//
|
|
|
|
// include $(call all-makefiles-under,$(LOCAL_PATH))
|
|
|
|
// Android.mk:end
|
|
|
|
cc_object {
|
|
|
|
name: "crtbrand",
|
|
|
|
local_include_dirs: ["include"],
|
|
|
|
product_variables: {
|
|
|
|
platform_sdk_version: {
|
|
|
|
asflags: ["-DPLATFORM_SDK_VERSION=%d"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
srcs: ["arch-common/bionic/crtbrand.S"],
|
|
|
|
|
2015-11-23 23:12:15 +01:00
|
|
|
defaults: [
|
|
|
|
"crt_defaults",
|
|
|
|
"crt_so_defaults",
|
|
|
|
],
|
2015-09-17 01:33:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Android.mk:ignore
|
|
|
|
cc_object {
|
|
|
|
name: "crtbegin_so1",
|
|
|
|
local_include_dirs: ["include"],
|
|
|
|
srcs: ["arch-common/bionic/crtbegin_so.c"],
|
|
|
|
|
2015-11-23 23:12:15 +01:00
|
|
|
defaults: [
|
|
|
|
"crt_defaults",
|
|
|
|
"crt_so_defaults",
|
|
|
|
],
|
2015-09-17 01:33:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Android.mk:ignore
|
|
|
|
cc_object {
|
|
|
|
name: "crtbegin_so",
|
|
|
|
|
2015-11-23 23:12:15 +01:00
|
|
|
defaults: [
|
|
|
|
"crt_defaults",
|
|
|
|
"crt_so_defaults",
|
|
|
|
],
|
2016-04-11 23:34:18 +02:00
|
|
|
objs: [
|
2015-09-17 01:33:27 +02:00
|
|
|
"crtbegin_so1",
|
|
|
|
"crtbrand",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
// Android.mk:ignore
|
|
|
|
cc_object {
|
|
|
|
name: "crtend_so",
|
|
|
|
local_include_dirs: ["include"],
|
|
|
|
srcs: ["arch-common/bionic/crtend_so.S"],
|
|
|
|
|
2015-11-23 23:12:15 +01:00
|
|
|
defaults: [
|
|
|
|
"crt_defaults",
|
|
|
|
"crt_so_defaults",
|
|
|
|
],
|
2015-09-17 01:33:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Android.mk:ignore
|
|
|
|
cc_object {
|
|
|
|
name: "crtbegin_static1",
|
|
|
|
local_include_dirs: ["include"],
|
|
|
|
srcs: ["arch-common/bionic/crtbegin.c"],
|
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
arch: {
|
2015-09-17 01:33:27 +02:00
|
|
|
arm64: {
|
|
|
|
srcs: [
|
|
|
|
"arch-arm64/bionic/crtbegin.c",
|
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"arch-common/bionic/crtbegin.c",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
mips: {
|
|
|
|
srcs: [
|
|
|
|
"arch-mips/bionic/crtbegin.c",
|
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"arch-common/bionic/crtbegin.c",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
mips64: {
|
|
|
|
srcs: [
|
|
|
|
"arch-mips64/bionic/crtbegin.c",
|
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"arch-common/bionic/crtbegin.c",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2015-11-01 07:03:05 +01:00
|
|
|
|
|
|
|
defaults: ["crt_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Android.mk:ignore
|
|
|
|
cc_object {
|
|
|
|
name: "crtbegin_static",
|
|
|
|
|
2016-04-11 23:34:18 +02:00
|
|
|
objs: [
|
2015-09-17 01:33:27 +02:00
|
|
|
"crtbegin_static1",
|
|
|
|
"crtbrand",
|
|
|
|
],
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["crt_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Android.mk:ignore
|
|
|
|
cc_object {
|
|
|
|
name: "crtbegin_dynamic1",
|
|
|
|
local_include_dirs: ["include"],
|
|
|
|
srcs: ["arch-common/bionic/crtbegin.c"],
|
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
arch: {
|
2015-09-17 01:33:27 +02:00
|
|
|
arm64: {
|
|
|
|
srcs: [
|
|
|
|
"arch-arm64/bionic/crtbegin.c",
|
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"arch-common/bionic/crtbegin.c",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
mips: {
|
|
|
|
srcs: [
|
|
|
|
"arch-mips/bionic/crtbegin.c",
|
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"arch-common/bionic/crtbegin.c",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
mips64: {
|
|
|
|
srcs: [
|
|
|
|
"arch-mips64/bionic/crtbegin.c",
|
|
|
|
],
|
|
|
|
exclude_srcs: [
|
|
|
|
"arch-common/bionic/crtbegin.c",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["crt_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Android.mk:ignore
|
|
|
|
cc_object {
|
|
|
|
name: "crtbegin_dynamic",
|
|
|
|
|
2016-04-11 23:34:18 +02:00
|
|
|
objs: [
|
2015-09-17 01:33:27 +02:00
|
|
|
"crtbegin_dynamic1",
|
|
|
|
"crtbrand",
|
|
|
|
],
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["crt_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Android.mk:ignore
|
|
|
|
cc_object {
|
|
|
|
// We rename crtend.o to crtend_android.o to avoid a
|
|
|
|
// name clash between gcc and bionic.
|
|
|
|
name: "crtend_android",
|
|
|
|
local_include_dirs: ["include"],
|
|
|
|
srcs: ["arch-common/bionic/crtend.S"],
|
|
|
|
|
2015-11-01 07:03:05 +01:00
|
|
|
defaults: ["crt_defaults"],
|
2015-09-17 01:33:27 +02:00
|
|
|
}
|
2016-07-13 20:15:21 +02:00
|
|
|
|
|
|
|
subdirs = ["malloc_debug"]
|