Android.mk revision 4f086aeb4aa06e13079b7fec71a8178ceeacf318
11dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_PATH:= $(call my-dir) 21dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 31dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(LOCAL_PATH)/arch-$(TARGET_ARCH)/syscalls.mk 4ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin 5ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Define the common source files for all the libc instances 6ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================= 71dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_src_files := \ 81dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project $(syscall_src) \ 91dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/abort.c \ 101dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/alarm.c \ 111dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/brk.c \ 121dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/creat.c \ 131dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/daemon.c \ 141dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/exec.c \ 151dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/fcntl.c \ 161dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/fnmatch.c \ 171dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/ftime.c \ 181dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/ftok.c \ 191dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/getcwd.c \ 201dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/getdtablesize.c \ 211dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/gethostname.c \ 221dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/getopt_long.c \ 231dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/getpgrp.c \ 241dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/getpriority.c \ 251dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/getpt.c \ 261dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/initgroups.c \ 271dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/isatty.c \ 281dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/issetugid.c \ 298c59d96e243ba1a05d7d9ab7a14d1a00e20bad4aColin Cross unistd/killpg.c \ 301dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/lseek64.c \ 311dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/mmap.c \ 321dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/nice.c \ 331dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/open.c \ 341dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/openat.c \ 351dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/opendir.c \ 361dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/pathconf.c \ 371dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/perror.c \ 381dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/popen.c \ 391dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/pread.c \ 401dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/pselect.c \ 411dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/ptsname.c \ 421dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/ptsname_r.c \ 431dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/pwrite.c \ 441dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/raise.c \ 451dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/reboot.c \ 461dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/recv.c \ 471dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/sbrk.c \ 481dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/send.c \ 491dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/setegid.c \ 509f6915631b918a56e0e6be958fb14d274cbab322Mike Chan unistd/setuid.c \ 511dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/seteuid.c \ 529f6915631b918a56e0e6be958fb14d274cbab322Mike Chan unistd/setreuid.c \ 539f6915631b918a56e0e6be958fb14d274cbab322Mike Chan unistd/setresuid.c \ 541dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/setpgrp.c \ 551dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/sigblock.c \ 561dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/siginterrupt.c \ 571dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/siglist.c \ 581dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/signal.c \ 5992b10af793da235659198cf38ff2e0237c181058Thorsten Glaser unistd/signame.c \ 601dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/sigsetmask.c \ 611dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/sigsuspend.c \ 621dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/sigwait.c \ 631dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/sleep.c \ 641dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/statfs.c \ 651dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/strsignal.c \ 661dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/sysconf.c \ 671dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/syslog.c \ 681dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/system.c \ 691dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/tcgetpgrp.c \ 701dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/tcsetpgrp.c \ 711dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/time.c \ 721dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/umount.c \ 731dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/unlockpt.c \ 741dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/usleep.c \ 751dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/wait.c \ 761dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/asprintf.c \ 771dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/clrerr.c \ 781dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fclose.c \ 791dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fdopen.c \ 801dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/feof.c \ 811dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/ferror.c \ 821dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fflush.c \ 831dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fgetc.c \ 841dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fgetln.c \ 851dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fgetpos.c \ 861dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fgets.c \ 871dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fileno.c \ 881dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/findfp.c \ 891dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/flags.c \ 901dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/flockfile.c \ 911dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fopen.c \ 921dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fprintf.c \ 931dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fpurge.c \ 941dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fputc.c \ 951dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fputs.c \ 961dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fread.c \ 971dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/freopen.c \ 981dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fscanf.c \ 991dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fseek.c \ 1001dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fsetpos.c \ 1011dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/ftell.c \ 1021dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/funopen.c \ 1031dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fvwrite.c \ 1041dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fwalk.c \ 1051dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/fwrite.c \ 1061dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/getc.c \ 1071dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/getchar.c \ 1081dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/gets.c \ 1091dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/makebuf.c \ 1101dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/mktemp.c \ 1111dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/printf.c \ 1121dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/putc.c \ 1131dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/putchar.c \ 1141dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/puts.c \ 1151dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/putw.c \ 1161dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/refill.c \ 1171dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/remove.c \ 1181dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/rewind.c \ 1191dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/rget.c \ 1201dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/scanf.c \ 1211dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/setbuf.c \ 1221dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/setbuffer.c \ 1231dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/setvbuf.c \ 1241dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/snprintf.c\ 1251dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/sprintf.c \ 1261dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/sscanf.c \ 1271dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/stdio.c \ 1281dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/tempnam.c \ 1291dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/tmpfile.c \ 1301dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/tmpnam.c \ 1311dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/ungetc.c \ 1321dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/vasprintf.c \ 1331dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/vfprintf.c \ 1341dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/vfscanf.c \ 1351dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/vprintf.c \ 1361dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/vsnprintf.c \ 1371dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/vsprintf.c \ 1381dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/vscanf.c \ 1391dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/vsscanf.c \ 1401dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/wbuf.c \ 1411dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdio/wsetup.c \ 1421dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/_rand48.c \ 1431dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/assert.c \ 1441dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/atexit.c \ 1451dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/atoi.c \ 1461dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/atol.c \ 1471dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/atoll.c \ 1481dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/bsearch.c \ 1491dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/ctype_.c \ 1501dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/div.c \ 1511dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/exit.c \ 1521dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/getenv.c \ 1531dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/jrand48.c \ 1541dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/ldiv.c \ 1551dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/lldiv.c \ 1561dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/locale.c \ 1571dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/lrand48.c \ 1581dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/mrand48.c \ 1591dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/nrand48.c \ 1601dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/putenv.c \ 1611dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/qsort.c \ 1621dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/seed48.c \ 1631dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/setenv.c \ 1641dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/setjmperr.c \ 1651dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/srand48.c \ 1661dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/strntoimax.c \ 1671dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/strntoumax.c \ 1681dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/strtod.c \ 1691dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/strtoimax.c \ 1701dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/strtol.c \ 1711dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/strtoll.c \ 1721dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/strtoul.c \ 1731dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/strtoull.c \ 1741dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/strtoumax.c \ 1751dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/tolower_.c \ 1761dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/toupper_.c \ 1771dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project stdlib/wchar.c \ 1781dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/index.c \ 1791dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/memccpy.c \ 1801dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/memchr.c \ 1811dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/memmem.c \ 1821dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/memrchr.c \ 1831dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/memswap.c \ 1841dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strcasecmp.c \ 1851dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strcasestr.c \ 1861dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strcat.c \ 1871dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strchr.c \ 1881dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strcoll.c \ 1891dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strcpy.c \ 1901dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strcspn.c \ 1911dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strdup.c \ 1921dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strerror.c \ 1931dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strerror_r.c \ 1941dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strlcat.c \ 1951dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strlcpy.c \ 1961dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strncat.c \ 1971dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strncpy.c \ 1981dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strndup.c \ 1991dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strnlen.c \ 2001dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strpbrk.c \ 2011dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strrchr.c \ 2021dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strsep.c \ 2031dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strspn.c \ 2041dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strstr.c \ 2051dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strtok.c \ 2061dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strtotimeval.c \ 2071dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project string/strxfrm.c \ 2081dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project inet/bindresvport.c \ 2091dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project inet/inet_addr.c \ 2101dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project inet/inet_aton.c \ 2111dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project inet/inet_ntoa.c \ 2121dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project inet/inet_ntop.c \ 2131dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project inet/inet_pton.c \ 2144032c1e2dfcc99613fe3e509a8153191e35aec12Szymon Jakubczak inet/ether_aton.c \ 2154032c1e2dfcc99613fe3e509a8153191e35aec12Szymon Jakubczak inet/ether_ntoa.c \ 2161dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project tzcode/asctime.c \ 2171dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project tzcode/difftime.c \ 2181dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project tzcode/localtime.c \ 2191dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project tzcode/strftime.c \ 2201dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project tzcode/strptime.c \ 2211dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/__errno.c \ 2221dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/__set_errno.c \ 2231dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/_rand48.c \ 2249f6915631b918a56e0e6be958fb14d274cbab322Mike Chan bionic/cpuacct.c \ 2251dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/arc4random.c \ 2261dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/basename.c \ 2271dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/basename_r.c \ 228fc10b24accd082fb33c8f92ff8b92481c22fe3dcColin Cross bionic/clearenv.c \ 2291dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/dirname.c \ 2301dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/dirname_r.c \ 2311dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/drand48.c \ 2321dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/erand48.c \ 23364ceac3f493e3063a289aec4a12c74787be974e4Colin Cross bionic/err.c \ 234fc10b24accd082fb33c8f92ff8b92481c22fe3dcColin Cross bionic/fdprintf.c \ 2351dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/fork.c \ 23664ceac3f493e3063a289aec4a12c74787be974e4Colin Cross bionic/fts.c \ 2371dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/if_nametoindex.c \ 2381dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/if_indextoname.c \ 2391dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/ioctl.c \ 2401dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/ldexp.c \ 2411dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/libc_init_common.c \ 2421dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/logd_write.c \ 2431dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/md5.c \ 2441dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/pututline.c \ 2451dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/realpath.c \ 2461dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/semaphore.c \ 2471dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/sha1.c \ 2481dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/ssp.c \ 2491dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/stubs.c \ 2501dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/system_properties.c \ 2511dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/time64.c \ 2521dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/thread_atexit.c \ 2531dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/utime.c \ 2541dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/utmp.c \ 2551dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/gethnamaddr.c \ 2561dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/isc/ev_timers.c \ 2571dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/isc/ev_streams.c \ 2581dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/inet/nsap_addr.c \ 2591dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/__dn_comp.c \ 2601dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/__res_close.c \ 2611dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/__res_send.c \ 2621dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/herror.c \ 2631dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/res_comp.c \ 2641dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/res_data.c \ 2651dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/res_debug.c \ 2661dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/res_init.c \ 2671dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/res_mkquery.c \ 2681dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/res_query.c \ 2691dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/res_send.c \ 27010093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI netbsd/resolv/res_state.c \ 2711dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/resolv/res_cache.c \ 2721dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/net/nsdispatch.c \ 2731dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/net/getaddrinfo.c \ 2741dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/net/getnameinfo.c \ 2751dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/net/getservbyname.c \ 2761dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/net/getservent.c \ 2771dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/net/base64.c \ 2781dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/net/getservbyport.c \ 2791dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/nameser/ns_name.c \ 2801dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/nameser/ns_parse.c \ 2811dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/nameser/ns_ttl.c \ 2821dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/nameser/ns_netint.c \ 2831dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project netbsd/nameser/ns_print.c \ 2844fa7b105644222d9b35347c9d226ca8e011072ebColin Cross netbsd/nameser/ns_samedomain.c \ 2854fa7b105644222d9b35347c9d226ca8e011072ebColin Cross regex/regcomp.c \ 2864fa7b105644222d9b35347c9d226ca8e011072ebColin Cross regex/regerror.c \ 2874fa7b105644222d9b35347c9d226ca8e011072ebColin Cross regex/regexec.c \ 2884fa7b105644222d9b35347c9d226ca8e011072ebColin Cross regex/regfree.c \ 2891dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 290ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Architecture specific source files go here 291ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================= 2921dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectifeq ($(TARGET_ARCH),arm) 2931dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_src_files += \ 29497cf7f3394780d524038fc083e2c134031b54728David 'Digit' Turner bionic/bionic_clone.c \ 2951dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/__get_pc.S \ 2961dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/__get_sp.S \ 2971dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/_exit_with_stack_teardown.S \ 2981dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/_setjmp.S \ 2991dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/atomics_arm.S \ 3001dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/clone.S \ 3013b43f87d2949a340e2c19cb735af7727157d8274David 'Digit' Turner arch-arm/bionic/eabi.c \ 3021dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/ffs.S \ 3031dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/kill.S \ 3042a7ad97539313c82e13d36c9c75cefb2982a87d8David 'Digit' Turner arch-arm/bionic/libgcc_compat.c \ 3051dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/tkill.S \ 3061dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/memcmp.S \ 3071dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/memcmp16.S \ 3081dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/memcpy.S \ 3091dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/memset.S \ 3101dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/setjmp.S \ 3111dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/sigsetjmp.S \ 3121dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/strlen.c.arm \ 3131dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-arm/bionic/syscall.S \ 314e4fa46e75cd0d433b5c6c064720ed7e195cba7c8Matt Fischer arch-arm/bionic/sigaction.c \ 315e4fa46e75cd0d433b5c6c064720ed7e195cba7c8Matt Fischer arch-arm/bionic/__sig_restorer.S \ 31610093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI string/memmove.c.arm \ 3178ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare string/bcopy.c \ 3188ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare string/strcmp.c \ 3198ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare string/strncmp.c \ 3201dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project unistd/socketcalls.c 3211dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 3221dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# These files need to be arm so that gdbserver 3231dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# can set breakpoints in them without messing 3241dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# up any thumb code. 3251dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_src_files += \ 3261dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/pthread.c.arm \ 3274f086aeb4aa06e13079b7fec71a8178ceeacf318Matt Fischer bionic/pthread-atfork.c.arm \ 3281dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/pthread-timers.c.arm \ 3291dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/ptrace.c.arm 330ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin 331ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# these are used by the static and dynamic versions of the libc 332ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# respectively 333ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavinlibc_arch_static_src_files := \ 334ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin arch-arm/bionic/exidx_static.c 335ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin 336ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavinlibc_arch_dynamic_src_files := \ 337ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin arch-arm/bionic/exidx_dynamic.c 3381dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectelse # !arm 3391dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 3401dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectifeq ($(TARGET_ARCH),x86) 3411dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_src_files += \ 3421dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/bionic/__get_sp.S \ 3431dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/bionic/__get_tls.c \ 3441dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/bionic/__set_tls.c \ 3451dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/bionic/atomics_x86.S \ 3461dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/bionic/clone.S \ 3471dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/bionic/_exit_with_stack_teardown.S \ 3481dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/bionic/setjmp.S \ 3491dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/bionic/_setjmp.S \ 3501dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/bionic/vfork.S \ 3513c543e1da9a2780a70b25299f39734bf0a18c4a0Bruce Beare arch-x86/bionic/syscall.S \ 3528ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare arch-x86/string/bcopy_wrapper.S \ 3538ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare arch-x86/string/memcpy_wrapper.S \ 3548ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare arch-x86/string/memmove_wrapper.S \ 3558ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare arch-x86/string/bzero_wrapper.S \ 3568ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare arch-x86/string/memcmp_wrapper.S \ 3578ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare arch-x86/string/memset_wrapper.S \ 3588ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare arch-x86/string/strcmp_wrapper.S \ 3598ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare arch-x86/string/strncmp_wrapper.S \ 3601dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project arch-x86/string/strlen.S \ 3611dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/pthread.c \ 3624f086aeb4aa06e13079b7fec71a8178ceeacf318Matt Fischer bionic/pthread-atfork.c \ 3631dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/pthread-timers.c \ 3641dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/ptrace.c 3651dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 366ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# this is needed for static versions of libc 367ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavinlibc_arch_static_src_files := \ 368ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin arch-x86/bionic/dl_iterate_phdr_static.c 369ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin 370ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavinlibc_arch_dynamic_src_files := 37110093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKIelse # !x86 37210093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI 37310093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKIifeq ($(TARGET_ARCH),sh) 37410093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKIlibc_common_src_files += \ 37510093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/__get_pc.S \ 37610093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/__get_sp.S \ 37710093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/_exit_with_stack_teardown.S \ 37810093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/_setjmp.S \ 37910093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/atomics_sh.c \ 38010093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/atomic_cmpxchg.S \ 38110093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/clone.S \ 38210093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/pipe.S \ 38310093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/memcpy.S \ 38410093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/memset.S \ 38510093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/bzero.S \ 38610093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/setjmp.S \ 38710093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/sigsetjmp.S \ 38810093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/syscall.S \ 38910093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/memmove.S \ 39010093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/__set_tls.c \ 39110093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/__get_tls.c \ 39210093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI arch-sh/bionic/ffs.S \ 3938ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare string/bcopy.c \ 3948ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare string/strcmp.c \ 3958ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare string/strncmp.c \ 39610093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI string/memcmp.c \ 39710093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI string/strlen.c \ 39810093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI bionic/pthread.c \ 3994f086aeb4aa06e13079b7fec71a8178ceeacf318Matt Fischer bionic/pthread-atfork.c \ 40010093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI bionic/pthread-timers.c \ 40110093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI bionic/ptrace.c \ 40210093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI unistd/socketcalls.c 40310093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKIendif # sh 40410093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKI 40510093276e98d26428875480c502a278dffe550c7Shin-ichiro KAWASAKIendif # !x86 4061dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectendif # !arm 4071dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 408ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Define some common cflags 409ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 4101dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_cflags := \ 4111dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -DWITH_ERRLIST \ 4121dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -DANDROID_CHANGES \ 4131dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -DUSE_LOCKS \ 4141dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -DREALLOC_ZERO_BYTES_FREES \ 4151dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -D_LIBC=1 \ 4161dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -DSOFTFLOAT \ 4171dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -DFLOATING_POINT \ 4181dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -DNEED_PSELECT=1 \ 4191dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -DINET6 \ 4201dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project -I$(LOCAL_PATH)/private \ 4214fa7b105644222d9b35347c9d226ca8e011072ebColin Cross -DUSE_DL_PREFIX \ 4224fa7b105644222d9b35347c9d226ca8e011072ebColin Cross -DPOSIX_MISTAKE 4231dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 424d7ed1ae98249af8a58ce97784a29f048d77789a9David 'Digit' Turner# these macro definitions are required to implement the 425d7ed1ae98249af8a58ce97784a29f048d77789a9David 'Digit' Turner# 'timezone' and 'daylight' global variables, as well as 426d7ed1ae98249af8a58ce97784a29f048d77789a9David 'Digit' Turner# properly update the 'tm_gmtoff' field in 'struct tm'. 427d7ed1ae98249af8a58ce97784a29f048d77789a9David 'Digit' Turner# 428d7ed1ae98249af8a58ce97784a29f048d77789a9David 'Digit' Turnerlibc_common_cflags += \ 429d7ed1ae98249af8a58ce97784a29f048d77789a9David 'Digit' Turner -DTM_GMTOFF=tm_gmtoff \ 430d7ed1ae98249af8a58ce97784a29f048d77789a9David 'Digit' Turner -DUSG_COMPAT=1 431d7ed1ae98249af8a58ce97784a29f048d77789a9David 'Digit' Turner 432d2c9dcc9265e66f6432ec39dcc7378b944449e60Dave Bortifeq ($(strip $(DEBUG_BIONIC_LIBC)),true) 4331dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project libc_common_cflags += -DDEBUG 4341dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectendif 4351dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 4361dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectifeq ($(TARGET_ARCH),arm) 4371dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project libc_common_cflags += -fstrict-aliasing 438ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin libc_crt_target_cflags := -mthumb-interwork 4394a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner # 4404a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner # Define HAVE_ARM_TLS_REGISTER macro to indicate to the C library 4414a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner # that it should access the hardware TLS register directly in 4424a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner # private/bionic_tls.h 4434a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner # 4444a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner # The value must match your kernel configuration 4454a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner # 4464a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true) 4474a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner libc_common_cflags += -DHAVE_ARM_TLS_REGISTER 4484a05d12cf52a9a40759f11f28543bd75715c8f00David 'Digit' Turner endif 449ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavinelse # !arm 450ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin ifeq ($(TARGET_ARCH),x86) 451ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin libc_crt_target_cflags := -m32 4528ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare 4538ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare # Enable recent IA friendly memory routines (such as for Atom) 4548ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare # These will not work on the earlier x86 machines 4558ff1a2759a6389bed30d7862d0beb76077032c99Bruce Beare libc_common_cflags += -mtune=i686 -DUSE_SSSE3 -DUSE_SSE2 456ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin endif # x86 457ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavinendif # !arm 4581dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 459ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Define some common includes 460ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 4611dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectlibc_common_c_includes := \ 4621dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project $(LOCAL_PATH)/stdlib \ 4631dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project $(LOCAL_PATH)/string \ 4641dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project $(LOCAL_PATH)/stdio 4651dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 4663b43f87d2949a340e2c19cb735af7727157d8274David 'Digit' Turner# Needed to access private/__dso_handle.S from 4673b43f87d2949a340e2c19cb735af7727157d8274David 'Digit' Turner# crtbegin_xxx.S and crtend_xxx.S 4683b43f87d2949a340e2c19cb735af7727157d8274David 'Digit' Turner# 4693b43f87d2949a340e2c19cb735af7727157d8274David 'Digit' Turnerlibc_crt_target_cflags += -I$(LOCAL_PATH)/private 4701dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 471ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# Define the libc run-time (crt) support object files that must be built, 472ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# which are needed to build all other objects (shared/static libs and 473ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# executables) 474ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ========================================================================== 4751dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 4763b43f87d2949a340e2c19cb735af7727157d8274David 'Digit' Turnerifneq ($(filter arm x86,$(TARGET_ARCH)),) 4773b43f87d2949a340e2c19cb735af7727157d8274David 'Digit' Turner# ARM and x86 need crtbegin_so/crtend_so. 4783b43f87d2949a340e2c19cb735af7727157d8274David 'Digit' Turner# 4793b43f87d2949a340e2c19cb735af7727157d8274David 'Digit' Turner# For x86, the .init section must point to a function that calls all 4803b43f87d2949a340e2c19cb735af7727157d8274David 'Digit' Turner# entries in the .ctors section. (on ARM this is done through the 4813b43f87d2949a340e2c19cb735af7727157d8274David 'Digit' Turner# .init_array section instead). 4823b43f87d2949a340e2c19cb735af7727157d8274David 'Digit' Turner# 4833b43f87d2949a340e2c19cb735af7727157d8274David 'Digit' Turner# For both platforms, the .fini_array section must point to a function 4843b43f87d2949a340e2c19cb735af7727157d8274David 'Digit' Turner# that will call __cxa_finalize(&__dso_handle) in order to ensure that 4853b43f87d2949a340e2c19cb735af7727157d8274David 'Digit' Turner# static C++ destructors are properly called on dlclose(). 4863b43f87d2949a340e2c19cb735af7727157d8274David 'Digit' Turner# 487ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinGEN := $(TARGET_OUT_STATIC_LIBRARIES)/crtbegin_so.o 488ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin$(GEN): $(LOCAL_PATH)/arch-$(TARGET_ARCH)/bionic/crtbegin_so.S 4891dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project @mkdir -p $(dir $@) 490ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin $(TARGET_CC) $(libc_crt_target_cflags) -o $@ -c $< 4911dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectALL_GENERATED_SOURCES += $(GEN) 4921dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 493ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinGEN := $(TARGET_OUT_STATIC_LIBRARIES)/crtend_so.o 494ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin$(GEN): $(LOCAL_PATH)/arch-$(TARGET_ARCH)/bionic/crtend_so.S 495ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin @mkdir -p $(dir $@) 496ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin $(TARGET_CC) $(libc_crt_target_cflags) -o $@ -c $< 497ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinALL_GENERATED_SOURCES += $(GEN) 498ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavinendif # TARGET_ARCH == x86 4991dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5001dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 501ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinGEN := $(TARGET_OUT_STATIC_LIBRARIES)/crtbegin_static.o 502ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin$(GEN): $(LOCAL_PATH)/arch-$(TARGET_ARCH)/bionic/crtbegin_static.S 503ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin @mkdir -p $(dir $@) 504ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin $(TARGET_CC) $(libc_crt_target_cflags) -o $@ -c $< 505ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinALL_GENERATED_SOURCES += $(GEN) 5061dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 507ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinGEN := $(TARGET_OUT_STATIC_LIBRARIES)/crtbegin_dynamic.o 508ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin$(GEN): $(LOCAL_PATH)/arch-$(TARGET_ARCH)/bionic/crtbegin_dynamic.S 5091dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project @mkdir -p $(dir $@) 510ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin $(TARGET_CC) $(libc_crt_target_cflags) -o $@ -c $< 5111dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectALL_GENERATED_SOURCES += $(GEN) 5121dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 513ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin 514ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# We rename crtend.o to crtend_android.o to avoid a 515ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# name clash between gcc and bionic. 516ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinGEN := $(TARGET_OUT_STATIC_LIBRARIES)/crtend_android.o 517ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin$(GEN): $(LOCAL_PATH)/arch-$(TARGET_ARCH)/bionic/crtend.S 5181dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project @mkdir -p $(dir $@) 519ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin $(TARGET_CC) $(libc_crt_target_cflags) -o $@ -c $< 5201dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectALL_GENERATED_SOURCES += $(GEN) 5211dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5221dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 523ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# To enable malloc leak check for statically linked programs, add 524ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# "WITH_MALLOC_CHECK_LIBC_A := true" to buildspec.mk 525ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinWITH_MALLOC_CHECK_LIBC_A := $(strip $(WITH_MALLOC_CHECK_LIBC_A)) 5261dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 527ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 528ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# libc_common.a 529ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 530ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavininclude $(CLEAR_VARS) 5311dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 532ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_SRC_FILES := $(libc_common_src_files) 533ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_CFLAGS := $(libc_common_cflags) 534ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_C_INCLUDES := $(libc_common_c_includes) 5351dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_MODULE := libc_common 5361dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES := 5371dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5381dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_STATIC_LIBRARY) 5391dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5401dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 541ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 54249e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# libc_nomalloc.a 54349e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# ======================================================== 54449e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# 54549e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# This is a version of the static C library that does not 54649e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# include malloc. It's useful in situations when calling 54749e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# the user wants to provide their own malloc implementation, 54849e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# or wants to explicitly disallow the use of the use of malloc, 54949e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# like the dynamic loader. 55049e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 55149e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavininclude $(CLEAR_VARS) 55249e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 55349e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_SRC_FILES := \ 55449e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin $(libc_arch_static_src_files) \ 55549e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin bionic/libc_init_static.c 55649e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 55749e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_C_INCLUDES := $(libc_common_c_includes) 55849e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_CFLAGS := $(libc_common_cflags) 55949e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 56049e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_MODULE := libc_nomalloc 56149e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_WHOLE_STATIC_LIBRARIES := libc_common 56249e55332784b82f7112ee7c1ea3c176c9dc32d7aDima ZavinLOCAL_SYSTEM_SHARED_LIBRARIES := 56349e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 56449e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavininclude $(BUILD_STATIC_LIBRARY) 56549e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 56649e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin 56749e55332784b82f7112ee7c1ea3c176c9dc32d7aDima Zavin# ======================================================== 5681dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# libc.a 5691dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ======================================================== 5701dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(CLEAR_VARS) 5711dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5721dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SRC_FILES := \ 573ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin $(libc_arch_static_src_files) \ 5741dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/dlmalloc.c \ 575b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine bionic/malloc_debug_common.c \ 5761dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/libc_init_static.c 5771dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 578b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_CFLAGS := $(libc_common_cflags) \ 579b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine -DLIBC_STATIC 5801dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_C_INCLUDES := $(libc_common_c_includes) 581ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_MODULE := libc 5821dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_WHOLE_STATIC_LIBRARIES := libc_common 5831dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES := 5841dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5851dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_STATIC_LIBRARY) 5861dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5871dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 588ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 5891dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# libc.so 5901dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ======================================================== 5911dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(CLEAR_VARS) 5921dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5931dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_CFLAGS := $(libc_common_cflags) 5941dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_C_INCLUDES := $(libc_common_c_includes) 5951dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 5961dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SRC_FILES := \ 597ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin $(libc_arch_dynamic_src_files) \ 5981dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/dlmalloc.c \ 599b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine bionic/malloc_debug_common.c \ 6001dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project bionic/libc_init_dynamic.c 6011dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 6021dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_MODULE:= libc 6031dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 6041dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# WARNING: The only library libc.so should depend on is libdl.so! If you add other libraries, 6051dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# make sure to add -Wl,--exclude-libs=libgcc.a to the LOCAL_LDFLAGS for those libraries. This 6061dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ensures that symbols that are pulled into those new libraries from libgcc.a are not declared 6071dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# external; if that were the case, then libc would not pull those symbols from libgcc.a as it 6081dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# should, instead relying on the external symbols from the dependent libraries. That would 6091dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# create an "cloaked" dependency on libgcc.a in libc though the libraries, which is not what 6101dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# you wanted! 6111dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 6121dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SHARED_LIBRARIES := libdl 6131dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_WHOLE_STATIC_LIBRARIES := libc_common 6141dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES := 6151dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 6161dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_SHARED_LIBRARY) 6171dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 6181dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 619b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# For all builds, except for the -user build we will enable memory 620b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# allocation checking (including memory leaks, buffer overwrites, etc.) 621b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# Note that all these checks are also controlled by env. settings 622b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# that can enable, or disable specific checks. Note also that some of 623b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# the checks are available only in emulator and are implemeted in 624b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# libc_malloc_qemu_instrumented.so. 625b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkineifneq ($(TARGET_BUILD_VARIANT),user) 626b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 627ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin# ======================================================== 628b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# libc_malloc_debug_leak.so 6291dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ======================================================== 6301dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(CLEAR_VARS) 6311dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 632ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima ZavinLOCAL_CFLAGS := \ 633ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin $(libc_common_cflags) \ 634ca122b0e34df0e8c485be0d3ab1b80f728b76276Dima Zavin -DMALLOC_LEAK_CHECK 6351dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 6361dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_C_INCLUDES := $(libc_common_c_includes) 6371dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 6381dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SRC_FILES := \ 639b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine bionic/malloc_debug_leak.c 6401dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 641b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_MODULE:= libc_malloc_debug_leak 6421dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 643b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_SHARED_LIBRARIES := libc 644b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_WHOLE_STATIC_LIBRARIES := libc_common 645b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_SYSTEM_SHARED_LIBRARIES := 646aa46fa24035f3ab020f9a7abd86c25ae2196bb32Bruce BeareLOCAL_ALLOW_UNDEFINED_SYMBOLS := true 647b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# Don't prelink 648b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_PRELINK_MODULE := false 649b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# Don't install on release build 650b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_MODULE_TAGS := eng debug 6511dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 652b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkineinclude $(BUILD_SHARED_LIBRARY) 653b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 654b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 655b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# ======================================================== 656b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# libc_malloc_debug_qemu.so 657b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine# ======================================================== 658b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkineinclude $(CLEAR_VARS) 659b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 660b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_CFLAGS := \ 661b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine $(libc_common_cflags) \ 662b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine -DMALLOC_QEMU_INSTRUMENT 663b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 664b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_C_INCLUDES := $(libc_common_c_includes) 665b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 666b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_SRC_FILES := \ 667b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine bionic/malloc_debug_qemu.c 668b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 669b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_MODULE:= libc_malloc_debug_qemu 670b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 671b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_SHARED_LIBRARIES := libc 6721dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_WHOLE_STATIC_LIBRARIES := libc_common 6731dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_SYSTEM_SHARED_LIBRARIES := 6741dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# Don't prelink 6751dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source ProjectLOCAL_PRELINK_MODULE := false 6761dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# Don't install on release build 677b74ceb25aae555570df64fa4d4076272733a9a20Vladimir ChtchetkineLOCAL_MODULE_TAGS := eng debug 6781dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 6791dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(BUILD_SHARED_LIBRARY) 6801dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project 681b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkineendif #!user 682b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 683b74ceb25aae555570df64fa4d4076272733a9a20Vladimir Chtchetkine 6841dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Project# ======================================================== 6851dc9e472e19acfe6dc7f41e429236e7eef7ceda1The Android Open Source Projectinclude $(call all-makefiles-under,$(LOCAL_PATH)) 686