Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 1 | # 64-bit mips. |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 2 | |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 3 | # |
| 4 | # Default implementations of functions that are commonly optimized. |
| 5 | # |
| 6 | |
| 7 | libc_bionic_src_files_mips64 += \ |
| 8 | bionic/__memcpy_chk.cpp \ |
| 9 | bionic/__memset_chk.cpp \ |
| 10 | bionic/__strcpy_chk.cpp \ |
| 11 | bionic/__strcat_chk.cpp \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 12 | bionic/strchr.cpp \ |
| 13 | bionic/strnlen.c \ |
| 14 | bionic/strrchr.cpp \ |
Elliott Hughes | e609909 | 2015-01-27 11:09:27 -0800 | [diff] [blame] | 15 | arch-mips/string/memcmp.c \ |
| 16 | arch-mips/string/memcpy.c \ |
| 17 | arch-mips/string/memset.c \ |
| 18 | arch-mips/string/strlen.c \ |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 19 | |
| 20 | libc_freebsd_src_files_mips64 += \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 21 | upstream-freebsd/lib/libc/string/wcscat.c \ |
| 22 | upstream-freebsd/lib/libc/string/wcschr.c \ |
| 23 | upstream-freebsd/lib/libc/string/wcscmp.c \ |
| 24 | upstream-freebsd/lib/libc/string/wcscpy.c \ |
| 25 | upstream-freebsd/lib/libc/string/wcslen.c \ |
| 26 | upstream-freebsd/lib/libc/string/wcsrchr.c \ |
| 27 | upstream-freebsd/lib/libc/string/wmemcmp.c \ |
Bernhard Rosenkraenzer | 6f2bde3 | 2014-05-23 17:44:18 +0200 | [diff] [blame] | 28 | upstream-freebsd/lib/libc/string/wmemmove.c \ |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 29 | |
| 30 | libc_openbsd_src_files_mips64 += \ |
Elliott Hughes | 41ef902 | 2015-02-14 13:21:22 -0800 | [diff] [blame] | 31 | upstream-openbsd/lib/libc/string/memchr.c \ |
Elliott Hughes | 76f8916 | 2015-01-26 13:34:58 -0800 | [diff] [blame] | 32 | upstream-openbsd/lib/libc/string/memmove.c \ |
Elliott Hughes | 41ef902 | 2015-02-14 13:21:22 -0800 | [diff] [blame] | 33 | upstream-openbsd/lib/libc/string/memrchr.c \ |
Varvara Rainchik | 5a92284 | 2014-04-24 15:41:20 +0400 | [diff] [blame] | 34 | upstream-openbsd/lib/libc/string/stpcpy.c \ |
| 35 | upstream-openbsd/lib/libc/string/stpncpy.c \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 36 | upstream-openbsd/lib/libc/string/strcat.c \ |
| 37 | upstream-openbsd/lib/libc/string/strcmp.c \ |
| 38 | upstream-openbsd/lib/libc/string/strcpy.c \ |
| 39 | upstream-openbsd/lib/libc/string/strlcat.c \ |
| 40 | upstream-openbsd/lib/libc/string/strlcpy.c \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 41 | upstream-openbsd/lib/libc/string/strncat.c \ |
| 42 | upstream-openbsd/lib/libc/string/strncmp.c \ |
| 43 | upstream-openbsd/lib/libc/string/strncpy.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 44 | |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 45 | # |
| 46 | # Inherently architecture-specific code. |
| 47 | # |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 48 | |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 49 | libc_bionic_src_files_mips64 += \ |
Chris Dearman | 645d031 | 2014-02-05 18:51:43 -0800 | [diff] [blame] | 50 | arch-mips64/bionic/__bionic_clone.S \ |
Chris Dearman | 645d031 | 2014-02-05 18:51:43 -0800 | [diff] [blame] | 51 | arch-mips64/bionic/_exit_with_stack_teardown.S \ |
Chris Dearman | 645d031 | 2014-02-05 18:51:43 -0800 | [diff] [blame] | 52 | arch-mips64/bionic/setjmp.S \ |
Chris Dearman | 645d031 | 2014-02-05 18:51:43 -0800 | [diff] [blame] | 53 | arch-mips64/bionic/syscall.S \ |
Dan Albert | 6a91887 | 2014-08-05 20:53:31 +0000 | [diff] [blame] | 54 | arch-mips64/bionic/vfork.S \ |
Raghu Gandham | 86d2fee | 2015-01-15 11:12:22 -0800 | [diff] [blame] | 55 | arch-mips64/bionic/stat.cpp \ |
Chris Dearman | 645d031 | 2014-02-05 18:51:43 -0800 | [diff] [blame] | 56 | |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 57 | libc_crt_target_cflags_mips64 := \ |
| 58 | $($(my_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS) \ |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 59 | -I$(LOCAL_PATH)/arch-mips64/include \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 60 | |
| 61 | libc_crt_target_crtbegin_file_mips64 := \ |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 62 | $(LOCAL_PATH)/arch-mips64/bionic/crtbegin.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 63 | |
| 64 | libc_crt_target_crtbegin_so_file_mips64 := \ |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 65 | $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 66 | |
| 67 | libc_crt_target_so_cflags_mips64 := \ |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 68 | -fPIC \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 69 | |
| 70 | libc_crt_target_ldflags_mips64 := \ |
Elliott Hughes | 7c02d94 | 2014-09-16 19:06:31 -0700 | [diff] [blame] | 71 | -melf64ltsmip \ |