2014-01-23 23:17:50 +00:00
|
|
|
# x86_64 specific configs
|
|
|
|
|
|
|
|
libc_common_src_files_x86_64 := \
|
2014-02-25 02:00:43 +00:00
|
|
|
bionic/index.cpp \
|
2014-01-23 23:17:50 +00:00
|
|
|
bionic/memchr.c \
|
|
|
|
bionic/memcmp.c \
|
2014-02-25 23:12:29 +00:00
|
|
|
bionic/memcpy.cpp \
|
2014-01-23 23:17:50 +00:00
|
|
|
bionic/memmove.c \
|
|
|
|
bionic/memrchr.c \
|
|
|
|
bionic/memset.c \
|
|
|
|
bionic/strchr.cpp \
|
|
|
|
bionic/strnlen.c \
|
2014-02-25 02:00:43 +00:00
|
|
|
bionic/strrchr.cpp \
|
2014-01-23 23:17:50 +00:00
|
|
|
upstream-freebsd/lib/libc/string/wcscat.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcschr.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcscmp.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcscpy.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcslen.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcsrchr.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wmemcmp.c \
|
2014-02-25 02:00:43 +00:00
|
|
|
upstream-openbsd/lib/libc/string/bcopy.c \
|
Add 32-bit Silvermont-optimized string/memory functions.
Add following functions:
bcopy, memcpy, memmove, memset, bzero, memcmp, wmemcmp, strlen,
strcpy, strncpy, stpcpy, stpncpy.
Create new directories inside arch-x86 to specify architecture: atom,
silvermont and generic (non atom or silvermont architectures are treated like generic).
Due to introducing optimized versions of stpcpy and stpncpy,
c-implementations of these functions are moved from
common for architectures makefile to arm and mips specific makefiles.
Change-Id: I990f8061c3e9bca1f154119303da9e781c5d086e
Signed-off-by: Varvara Rainchik <varvara.rainchik@intel.com>
2014-04-24 11:41:20 +00:00
|
|
|
upstream-openbsd/lib/libc/string/stpcpy.c \
|
|
|
|
upstream-openbsd/lib/libc/string/stpncpy.c \
|
2014-02-25 02:00:43 +00:00
|
|
|
upstream-openbsd/lib/libc/string/strcat.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strcmp.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strcpy.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strlcat.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strlcpy.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strlen.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strncat.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strncmp.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strncpy.c \
|
2014-01-23 23:17:50 +00:00
|
|
|
|
|
|
|
# Fortify implementations of libc functions.
|
|
|
|
libc_common_src_files_x86_64 += \
|
|
|
|
bionic/__memcpy_chk.cpp \
|
|
|
|
bionic/__memset_chk.cpp \
|
|
|
|
bionic/__strcpy_chk.cpp \
|
|
|
|
bionic/__strcat_chk.cpp \
|
|
|
|
|
|
|
|
|
|
|
|
##########################################
|
|
|
|
### CPU specific source files
|
|
|
|
libc_bionic_src_files_x86_64 := \
|
2013-11-19 21:31:58 +00:00
|
|
|
arch-x86_64/bionic/__bionic_clone.S \
|
2012-12-18 13:30:02 +00:00
|
|
|
arch-x86_64/bionic/_exit_with_stack_teardown.S \
|
|
|
|
arch-x86_64/bionic/futex_x86_64.S \
|
2013-10-04 21:55:30 +00:00
|
|
|
arch-x86_64/bionic/__get_sp.S \
|
|
|
|
arch-x86_64/bionic/__rt_sigreturn.S \
|
2012-12-18 13:30:02 +00:00
|
|
|
arch-x86_64/bionic/_setjmp.S \
|
2013-10-04 21:55:30 +00:00
|
|
|
arch-x86_64/bionic/setjmp.S \
|
|
|
|
arch-x86_64/bionic/__set_tls.c \
|
|
|
|
arch-x86_64/bionic/sigsetjmp.S \
|
|
|
|
arch-x86_64/bionic/syscall.S \
|
2013-10-19 01:21:11 +00:00
|
|
|
arch-x86_64/bionic/vfork.S \
|
2014-02-25 02:00:43 +00:00
|
|
|
bionic/__memcmp16.cpp \
|
2014-01-23 23:17:50 +00:00
|
|
|
|
|
|
|
libc_crt_target_cflags_x86_64 += \
|
|
|
|
-m64 \
|
|
|
|
-I$(LOCAL_PATH)/arch-x86_64/include
|
|
|
|
|
|
|
|
libc_crt_target_ldflags_x86_64 := -melf_x86_64
|
|
|
|
|
|
|
|
libc_crt_target_crtbegin_file_x86_64 := \
|
|
|
|
$(LOCAL_PATH)/arch-common/bionic/crtbegin.c
|
|
|
|
|
|
|
|
libc_crt_target_crtbegin_so_file_x86_64 := \
|
|
|
|
$(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c
|
|
|
|
|
|
|
|
libc_crt_target_so_cflags_x86_64 := \
|
|
|
|
-fPIC
|