Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 1 | # x86_64 specific configs |
| 2 | |
| 3 | libc_common_src_files_x86_64 := \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 4 | bionic/index.cpp \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 5 | bionic/memchr.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 6 | bionic/memrchr.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 7 | bionic/strchr.cpp \ |
| 8 | bionic/strnlen.c \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 9 | bionic/strrchr.cpp \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 10 | upstream-freebsd/lib/libc/string/wcscat.c \ |
| 11 | upstream-freebsd/lib/libc/string/wcschr.c \ |
| 12 | upstream-freebsd/lib/libc/string/wcscmp.c \ |
| 13 | upstream-freebsd/lib/libc/string/wcscpy.c \ |
| 14 | upstream-freebsd/lib/libc/string/wcslen.c \ |
| 15 | upstream-freebsd/lib/libc/string/wcsrchr.c \ |
| 16 | upstream-freebsd/lib/libc/string/wmemcmp.c \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 17 | upstream-openbsd/lib/libc/string/strlcat.c \ |
| 18 | upstream-openbsd/lib/libc/string/strlcpy.c \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 19 | |
| 20 | # Fortify implementations of libc functions. |
| 21 | libc_common_src_files_x86_64 += \ |
| 22 | bionic/__memcpy_chk.cpp \ |
| 23 | bionic/__memset_chk.cpp \ |
| 24 | bionic/__strcpy_chk.cpp \ |
| 25 | bionic/__strcat_chk.cpp \ |
| 26 | |
| 27 | |
| 28 | ########################################## |
| 29 | ### CPU specific source files |
| 30 | libc_bionic_src_files_x86_64 := \ |
Elliott Hughes | 36d6188 | 2013-11-19 13:31:58 -0800 | [diff] [blame] | 31 | arch-x86_64/bionic/__bionic_clone.S \ |
Pavel Chupin | a567a8e | 2012-12-18 17:30:02 +0400 | [diff] [blame] | 32 | arch-x86_64/bionic/_exit_with_stack_teardown.S \ |
Elliott Hughes | 4906e56 | 2013-10-04 14:55:30 -0700 | [diff] [blame] | 33 | arch-x86_64/bionic/__get_sp.S \ |
Elliott Hughes | 4906e56 | 2013-10-04 14:55:30 -0700 | [diff] [blame] | 34 | arch-x86_64/bionic/__rt_sigreturn.S \ |
Pavel Chupin | a567a8e | 2012-12-18 17:30:02 +0400 | [diff] [blame] | 35 | arch-x86_64/bionic/_setjmp.S \ |
Elliott Hughes | 4906e56 | 2013-10-04 14:55:30 -0700 | [diff] [blame] | 36 | arch-x86_64/bionic/setjmp.S \ |
| 37 | arch-x86_64/bionic/__set_tls.c \ |
Elliott Hughes | 4906e56 | 2013-10-04 14:55:30 -0700 | [diff] [blame] | 38 | arch-x86_64/bionic/sigsetjmp.S \ |
Elliott Hughes | 4906e56 | 2013-10-04 14:55:30 -0700 | [diff] [blame] | 39 | arch-x86_64/bionic/syscall.S \ |
Elliott Hughes | 9ea4d5f | 2013-10-18 18:21:11 -0700 | [diff] [blame] | 40 | arch-x86_64/bionic/vfork.S \ |
Elliott Hughes | 53e4329 | 2014-02-24 18:00:43 -0800 | [diff] [blame] | 41 | bionic/__memcmp16.cpp \ |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 42 | |
Varvara Rainchik | a020a24 | 2014-04-29 17:44:56 +0400 | [diff] [blame] | 43 | libc_bionic_src_files_x86_64 += \ |
| 44 | arch-x86_64/string/sse2-bcopy-slm.S \ |
| 45 | arch-x86_64/string/sse2-bzero-slm.S \ |
| 46 | arch-x86_64/string/sse2-memcpy-slm.S \ |
| 47 | arch-x86_64/string/sse2-memmove-slm.S \ |
| 48 | arch-x86_64/string/sse2-memset-slm.S \ |
| 49 | arch-x86_64/string/sse2-stpcpy-slm.S \ |
| 50 | arch-x86_64/string/sse2-stpncpy-slm.S \ |
| 51 | arch-x86_64/string/sse2-strcat-slm.S \ |
| 52 | arch-x86_64/string/sse2-strcpy-slm.S \ |
| 53 | arch-x86_64/string/sse2-strlen-slm.S \ |
| 54 | arch-x86_64/string/sse2-strncat-slm.S \ |
| 55 | arch-x86_64/string/sse2-strncpy-slm.S \ |
| 56 | arch-x86_64/string/sse4-memcmp-slm.S \ |
| 57 | arch-x86_64/string/ssse3-strcmp-slm.S \ |
| 58 | arch-x86_64/string/ssse3-strncmp-slm.S \ |
| 59 | |
Ying Wang | f25d677 | 2014-01-23 15:17:50 -0800 | [diff] [blame] | 60 | libc_crt_target_cflags_x86_64 += \ |
| 61 | -m64 \ |
| 62 | -I$(LOCAL_PATH)/arch-x86_64/include |
| 63 | |
| 64 | libc_crt_target_ldflags_x86_64 := -melf_x86_64 |
| 65 | |
| 66 | libc_crt_target_crtbegin_file_x86_64 := \ |
| 67 | $(LOCAL_PATH)/arch-common/bionic/crtbegin.c |
| 68 | |
| 69 | libc_crt_target_crtbegin_so_file_x86_64 := \ |
| 70 | $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c |
| 71 | |
| 72 | libc_crt_target_so_cflags_x86_64 := \ |
| 73 | -fPIC |