1 # 32-bit x86. 2 3 # 4 # Various kinds of LP32 cruft. 5 # 6 7 libc_bionic_src_files_x86 += \ 8 bionic/mmap.cpp \ 9 10 libc_common_src_files_x86 += \ 11 bionic/legacy_32_bit_support.cpp \ 12 bionic/ndk_cruft.cpp \ 13 bionic/time64.c \ 14 15 libc_netbsd_src_files_x86 += \ 16 upstream-netbsd/common/lib/libc/hash/sha1/sha1.c \ 17 18 libc_openbsd_src_files_x86 += \ 19 upstream-openbsd/lib/libc/stdio/putw.c \ 20 21 # 22 # Default implementations of functions that are commonly optimized. 23 # 24 25 libc_common_src_files_x86 += \ 26 bionic/__memcpy_chk.cpp \ 27 bionic/__memset_chk.cpp \ 28 bionic/__strcpy_chk.cpp \ 29 bionic/__strcat_chk.cpp \ 30 31 libc_freebsd_src_files_x86 += \ 32 upstream-freebsd/lib/libc/string/wmemmove.c \ 33 34 # 35 # Inherently architecture-specific functions. 36 # 37 38 libc_bionic_src_files_x86 += \ 39 arch-x86/bionic/__bionic_clone.S \ 40 arch-x86/bionic/_exit_with_stack_teardown.S \ 41 arch-x86/bionic/libgcc_compat.c \ 42 arch-x86/bionic/__restore.S \ 43 arch-x86/bionic/_setjmp.S \ 44 arch-x86/bionic/setjmp.S \ 45 arch-x86/bionic/__set_tls.c \ 46 arch-x86/bionic/sigsetjmp.S \ 47 arch-x86/bionic/syscall.S \ 48 arch-x86/bionic/vfork.S \ 49 50 ## ARCH variant specific source files 51 arch_variant_mk := $(LOCAL_PATH)/arch-x86/$(TARGET_ARCH_VARIANT)/$(TARGET_ARCH_VARIANT).mk 52 ifeq ($(wildcard $(arch_variant_mk)),) 53 arch_variant_mk := $(LOCAL_PATH)/arch-x86/generic/generic.mk 54 endif 55 include $(arch_variant_mk) 56 libc_common_additional_dependencies += $(arch_variant_mk) 57 58 arch_variant_mk := 59 60 libc_crt_target_cflags_x86 := \ 61 -m32 \ 62 -I$(LOCAL_PATH)/arch-x86/include 63 64 libc_crt_target_ldflags_x86 := -melf_i386 65 66 libc_crt_target_crtbegin_file_x86 := \ 67 $(LOCAL_PATH)/arch-common/bionic/crtbegin.c 68 69 libc_crt_target_crtbegin_so_file_x86 := \ 70 $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c 71 72 libc_crt_target_so_cflags_x86 := \ 73 -fPIC 74