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