blob: 9171c50f63cdd48758351eb0730de61aa6ed6880 [file] [log] [blame]
Ying Wangf25d6772014-01-23 15:17:50 -08001# x86_64 specific configs
2
3libc_common_src_files_x86_64 := \
Elliott Hughes53e43292014-02-24 18:00:43 -08004 bionic/index.cpp \
Ying Wangf25d6772014-01-23 15:17:50 -08005 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 Hughes53e43292014-02-24 18:00:43 -080013 bionic/strrchr.cpp \
Ying Wangf25d6772014-01-23 15:17:50 -080014 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 Hughes53e43292014-02-24 18:00:43 -080021 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 Wangf25d6772014-01-23 15:17:50 -080031
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 Hughes53e43292014-02-24 18:00:43 -080054 bionic/__memcmp16.cpp \
Ying Wangf25d6772014-01-23 15:17:50 -080055
Ying Wangf25d6772014-01-23 15:17:50 -080056libc_crt_target_cflags_x86_64 += \
57 -m64 \
58 -I$(LOCAL_PATH)/arch-x86_64/include
59
60libc_crt_target_ldflags_x86_64 := -melf_x86_64
61
62libc_crt_target_crtbegin_file_x86_64 := \
63 $(LOCAL_PATH)/arch-common/bionic/crtbegin.c
64
65libc_crt_target_crtbegin_so_file_x86_64 := \
66 $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c
67
68libc_crt_target_so_cflags_x86_64 := \
69 -fPIC