blob: 44831a6d92afaa1160e0889791bc67d6165bb286 [file] [log] [blame]
Ying Wangf25d6772014-01-23 15:17:50 -08001# x86_64 specific configs
2
3libc_common_src_files_x86_64 := \
4 bionic/memchr.c \
5 bionic/memcmp.c \
6 bionic/memcpy.c \
7 bionic/memmove.c \
8 bionic/memrchr.c \
9 bionic/memset.c \
10 bionic/strchr.cpp \
11 bionic/strnlen.c \
12 string/bcopy.c \
13 string/index.c \
14 string/strcat.c \
15 string/strcmp.c \
16 string/strcpy.c \
17 string/strlcat.c \
18 string/strlcpy.c \
19 string/strlen.c \
20 string/strncat.c \
21 string/strncmp.c \
22 string/strncpy.c \
23 string/strrchr.c \
24 upstream-freebsd/lib/libc/string/wcscat.c \
25 upstream-freebsd/lib/libc/string/wcschr.c \
26 upstream-freebsd/lib/libc/string/wcscmp.c \
27 upstream-freebsd/lib/libc/string/wcscpy.c \
28 upstream-freebsd/lib/libc/string/wcslen.c \
29 upstream-freebsd/lib/libc/string/wcsrchr.c \
30 upstream-freebsd/lib/libc/string/wmemcmp.c \
31
32# Fortify implementations of libc functions.
33libc_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
42libc_bionic_src_files_x86_64 := \
Elliott Hughes36d61882013-11-19 13:31:58 -080043 arch-x86_64/bionic/__bionic_clone.S \
Pavel Chupina567a8e2012-12-18 17:30:02 +040044 arch-x86_64/bionic/_exit_with_stack_teardown.S \
45 arch-x86_64/bionic/futex_x86_64.S \
Elliott Hughes4906e562013-10-04 14:55:30 -070046 arch-x86_64/bionic/__get_sp.S \
Elliott Hughes4906e562013-10-04 14:55:30 -070047 arch-x86_64/bionic/__rt_sigreturn.S \
Pavel Chupina567a8e2012-12-18 17:30:02 +040048 arch-x86_64/bionic/_setjmp.S \
Elliott Hughes4906e562013-10-04 14:55:30 -070049 arch-x86_64/bionic/setjmp.S \
50 arch-x86_64/bionic/__set_tls.c \
Elliott Hughes4906e562013-10-04 14:55:30 -070051 arch-x86_64/bionic/sigsetjmp.S \
Elliott Hughes4906e562013-10-04 14:55:30 -070052 arch-x86_64/bionic/syscall.S \
Elliott Hughes9ea4d5f2013-10-18 18:21:11 -070053 arch-x86_64/bionic/vfork.S \
Elliott Hughes8ca530e2013-10-17 17:03:22 -070054 string/memcmp16.c \
Ying Wangf25d6772014-01-23 15:17:50 -080055
Ying Wangf25d6772014-01-23 15:17:50 -080056
Ying Wangf25d6772014-01-23 15:17:50 -080057libc_crt_target_cflags_x86_64 += \
58 -m64 \
59 -I$(LOCAL_PATH)/arch-x86_64/include
60
61libc_crt_target_ldflags_x86_64 := -melf_x86_64
62
63libc_crt_target_crtbegin_file_x86_64 := \
64 $(LOCAL_PATH)/arch-common/bionic/crtbegin.c
65
66libc_crt_target_crtbegin_so_file_x86_64 := \
67 $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c
68
69libc_crt_target_so_cflags_x86_64 := \
70 -fPIC