blob: 26733cb492d8e299b2d084df58ecc8b5bcfd7b27 [file] [log] [blame]
Elliott Hughes7c02d942014-09-16 19:06:31 -07001# 64-bit mips.
Ying Wangf25d6772014-01-23 15:17:50 -08002
Elliott Hughes7c02d942014-09-16 19:06:31 -07003#
4# Default implementations of functions that are commonly optimized.
5#
6
7libc_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 Hughes53e43292014-02-24 18:00:43 -080012 bionic/memchr.c \
13 bionic/memcmp.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080014 bionic/memrchr.c \
Elliott Hughes7c02d942014-09-16 19:06:31 -070015 bionic/memset.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080016 bionic/strchr.cpp \
17 bionic/strnlen.c \
18 bionic/strrchr.cpp \
Elliott Hughes7c02d942014-09-16 19:06:31 -070019
20libc_freebsd_src_files_mips64 += \
Elliott Hughes53e43292014-02-24 18:00:43 -080021 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 Rosenkraenzer6f2bde32014-05-23 17:44:18 +020028 upstream-freebsd/lib/libc/string/wmemmove.c \
Elliott Hughes7c02d942014-09-16 19:06:31 -070029
30libc_openbsd_src_files_mips64 += \
Elliott Hughes76f89162015-01-26 13:34:58 -080031 upstream-openbsd/lib/libc/string/memcpy.c \
32 upstream-openbsd/lib/libc/string/memmove.c \
Varvara Rainchik5a922842014-04-24 15:41:20 +040033 upstream-openbsd/lib/libc/string/stpcpy.c \
34 upstream-openbsd/lib/libc/string/stpncpy.c \
Elliott Hughes53e43292014-02-24 18:00:43 -080035 upstream-openbsd/lib/libc/string/strcat.c \
36 upstream-openbsd/lib/libc/string/strcmp.c \
37 upstream-openbsd/lib/libc/string/strcpy.c \
38 upstream-openbsd/lib/libc/string/strlcat.c \
39 upstream-openbsd/lib/libc/string/strlcpy.c \
40 upstream-openbsd/lib/libc/string/strlen.c \
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 Wangf25d6772014-01-23 15:17:50 -080044
Elliott Hughes7c02d942014-09-16 19:06:31 -070045#
46# Inherently architecture-specific code.
47#
Ying Wangf25d6772014-01-23 15:17:50 -080048
Elliott Hughes7c02d942014-09-16 19:06:31 -070049libc_bionic_src_files_mips64 += \
Chris Dearman645d0312014-02-05 18:51:43 -080050 arch-mips64/bionic/__bionic_clone.S \
Chris Dearman645d0312014-02-05 18:51:43 -080051 arch-mips64/bionic/_exit_with_stack_teardown.S \
Chris Dearman645d0312014-02-05 18:51:43 -080052 arch-mips64/bionic/setjmp.S \
Chris Dearman645d0312014-02-05 18:51:43 -080053 arch-mips64/bionic/syscall.S \
Dan Albert6a918872014-08-05 20:53:31 +000054 arch-mips64/bionic/vfork.S \
Chris Dearman645d0312014-02-05 18:51:43 -080055
Ying Wangf25d6772014-01-23 15:17:50 -080056libc_crt_target_cflags_mips64 := \
57 $($(my_2nd_arch_prefix)TARGET_GLOBAL_CFLAGS) \
Elliott Hughes7c02d942014-09-16 19:06:31 -070058 -I$(LOCAL_PATH)/arch-mips64/include \
Ying Wangf25d6772014-01-23 15:17:50 -080059
60libc_crt_target_crtbegin_file_mips64 := \
Elliott Hughes7c02d942014-09-16 19:06:31 -070061 $(LOCAL_PATH)/arch-mips64/bionic/crtbegin.c \
Ying Wangf25d6772014-01-23 15:17:50 -080062
63libc_crt_target_crtbegin_so_file_mips64 := \
Elliott Hughes7c02d942014-09-16 19:06:31 -070064 $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c \
Ying Wangf25d6772014-01-23 15:17:50 -080065
66libc_crt_target_so_cflags_mips64 := \
Elliott Hughes7c02d942014-09-16 19:06:31 -070067 -fPIC \
Ying Wangf25d6772014-01-23 15:17:50 -080068
69libc_crt_target_ldflags_mips64 := \
Elliott Hughes7c02d942014-09-16 19:06:31 -070070 -melf64ltsmip \