From a776367937aa4f6ff03f0d3fdecb90d13fdaab14 Mon Sep 17 00:00:00 2001 From: hyc Date: Wed, 26 Apr 2017 09:23:07 +0100 Subject: Add sample Android config, gcc 6.3 patches --- samples/aarch64-unknown-linux-android/crosstool.config | 10 ++++++++++ samples/aarch64-unknown-linux-android/reported.by | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 samples/aarch64-unknown-linux-android/crosstool.config create mode 100644 samples/aarch64-unknown-linux-android/reported.by (limited to 'samples') diff --git a/samples/aarch64-unknown-linux-android/crosstool.config b/samples/aarch64-unknown-linux-android/crosstool.config new file mode 100644 index 00000000..fa147e25 --- /dev/null +++ b/samples/aarch64-unknown-linux-android/crosstool.config @@ -0,0 +1,10 @@ +# CT_RM_RF_PREFIX_DIR is not set +CT_ARCH_arm=y +CT_ARCH_64=y +CT_ARCH_ARCH="armv8-a" +CT_STATIC_TOOLCHAIN=y +CT_KERNEL_linux=y +CT_LIBC_BIONIC_V_14b=y +CT_ANDROID_API_21=y +CT_CC_LANG_CXX=y +CT_GETTEXT=y diff --git a/samples/aarch64-unknown-linux-android/reported.by b/samples/aarch64-unknown-linux-android/reported.by new file mode 100644 index 00000000..fb4b9ec1 --- /dev/null +++ b/samples/aarch64-unknown-linux-android/reported.by @@ -0,0 +1,3 @@ +reporter_name="Howard Chu" +reporter_url="http://www.symas.com" +reporter_comment="Config to build cross-compiler for Android/bionic on ARM64" -- cgit v1.2.3 From 22e4a3f4334ee74233e40e19f3a72187eed3bb91 Mon Sep 17 00:00:00 2001 From: hyc Date: Mon, 8 May 2017 18:10:39 +0100 Subject: Fix samples defaulted to glibc Since glibc is no longer the default C library --- samples/aarch64-rpi3-linux-gnueabi/crosstool.config | 1 + samples/aarch64-unknown-linux-gnueabi/crosstool.config | 1 + samples/arm-cortex_a15-linux-gnueabihf/crosstool.config | 1 + samples/arm-cortex_a8-linux-gnueabi/crosstool.config | 1 + samples/arm-cortexa9_neon-linux-gnueabihf/crosstool.config | 1 + samples/arm-unknown-linux-gnueabi/crosstool.config | 1 + samples/armeb-unknown-linux-gnueabi/crosstool.config | 1 + samples/armv6-rpi-linux-gnueabi/crosstool.config | 1 + samples/armv7-rpi2-linux-gnueabihf/crosstool.config | 1 + samples/armv8-rpi3-linux-gnueabihf/crosstool.config | 1 + samples/i686-centos6-linux-gnu/crosstool.config | 1 + samples/i686-centos7-linux-gnu/crosstool.config | 1 + samples/i686-nptl-linux-gnu/crosstool.config | 1 + samples/i686-ubuntu12.04-linux-gnu/crosstool.config | 1 + samples/i686-ubuntu14.04-linux-gnu/crosstool.config | 1 + samples/i686-ubuntu16.04-linux-gnu/crosstool.config | 1 + samples/mips-ar2315-linux-gnu/crosstool.config | 1 + samples/mips-malta-linux-gnu/crosstool.config | 1 + samples/mipsel-multilib-linux-gnu/crosstool.config | 1 + samples/mipsel-unknown-linux-gnu/crosstool.config | 1 + samples/x86_64-centos6-linux-gnu/crosstool.config | 1 + samples/x86_64-centos7-linux-gnu/crosstool.config | 1 + samples/x86_64-multilib-linux-gnu/crosstool.config | 1 + samples/x86_64-ubuntu12.04-linux-gnu/crosstool.config | 1 + samples/x86_64-ubuntu14.04-linux-gnu/crosstool.config | 1 + samples/x86_64-ubuntu16.04-linux-gnu/crosstool.config | 1 + samples/x86_64-unknown-linux-gnu/crosstool.config | 1 + .../crosstool.config | 1 + samples/x86_64-w64-mingw32,x86_64-pc-linux-gnu/crosstool.config | 1 + 29 files changed, 29 insertions(+) (limited to 'samples') diff --git a/samples/aarch64-rpi3-linux-gnueabi/crosstool.config b/samples/aarch64-rpi3-linux-gnueabi/crosstool.config index 01605ac1..6d51c12e 100644 --- a/samples/aarch64-rpi3-linux-gnueabi/crosstool.config +++ b/samples/aarch64-rpi3-linux-gnueabi/crosstool.config @@ -7,5 +7,6 @@ CT_BINUTILS_LINKER_LD_GOLD=y CT_BINUTILS_GOLD_THREADS=y CT_BINUTILS_LD_WRAPPER=y CT_BINUTILS_PLUGINS=y +CT_LIBC_glibc=y CT_CC_LANG_CXX=y CT_DEBUG_gdb=y diff --git a/samples/aarch64-unknown-linux-gnueabi/crosstool.config b/samples/aarch64-unknown-linux-gnueabi/crosstool.config index e3a393af..8ff183c4 100644 --- a/samples/aarch64-unknown-linux-gnueabi/crosstool.config +++ b/samples/aarch64-unknown-linux-gnueabi/crosstool.config @@ -6,5 +6,6 @@ CT_BINUTILS_LINKER_LD_GOLD=y CT_BINUTILS_GOLD_THREADS=y CT_BINUTILS_LD_WRAPPER=y CT_BINUTILS_PLUGINS=y +CT_LIBC_glibc=y CT_CC_LANG_CXX=y CT_DEBUG_gdb=y diff --git a/samples/arm-cortex_a15-linux-gnueabihf/crosstool.config b/samples/arm-cortex_a15-linux-gnueabihf/crosstool.config index 5d0ab9c7..76174b62 100644 --- a/samples/arm-cortex_a15-linux-gnueabihf/crosstool.config +++ b/samples/arm-cortex_a15-linux-gnueabihf/crosstool.config @@ -8,6 +8,7 @@ CT_BINUTILS_LINKER_LD_GOLD=y CT_BINUTILS_GOLD_THREADS=y CT_BINUTILS_LD_WRAPPER=y CT_BINUTILS_PLUGINS=y +CT_LIBC_glibc=y CT_CC_GCC_SHOW_LINARO=y CT_CC_LANG_CXX=y CT_DEBUG_duma=y diff --git a/samples/arm-cortex_a8-linux-gnueabi/crosstool.config b/samples/arm-cortex_a8-linux-gnueabi/crosstool.config index f5245e2e..7b7a74bb 100644 --- a/samples/arm-cortex_a8-linux-gnueabi/crosstool.config +++ b/samples/arm-cortex_a8-linux-gnueabi/crosstool.config @@ -7,6 +7,7 @@ CT_BINUTILS_LINKER_LD_GOLD=y CT_BINUTILS_GOLD_THREADS=y CT_BINUTILS_LD_WRAPPER=y CT_BINUTILS_PLUGINS=y +CT_LIBC_glibc=y CT_CC_LANG_CXX=y CT_DEBUG_duma=y CT_DEBUG_gdb=y diff --git a/samples/arm-cortexa9_neon-linux-gnueabihf/crosstool.config b/samples/arm-cortexa9_neon-linux-gnueabihf/crosstool.config index 9330cce6..f5a57dd1 100644 --- a/samples/arm-cortexa9_neon-linux-gnueabihf/crosstool.config +++ b/samples/arm-cortexa9_neon-linux-gnueabihf/crosstool.config @@ -10,6 +10,7 @@ CT_BINUTILS_LINKER_LD_GOLD=y CT_BINUTILS_GOLD_THREADS=y CT_BINUTILS_LD_WRAPPER=y CT_BINUTILS_PLUGINS=y +CT_LIBC_glibc=y CT_LIBC_ADDONS_LIST="libidn" CT_LIBC_LOCALES=y CT_LIBC_GLIBC_KERNEL_VERSION_NONE=y diff --git a/samples/arm-unknown-linux-gnueabi/crosstool.config b/samples/arm-unknown-linux-gnueabi/crosstool.config index 85909e51..20157cfb 100644 --- a/samples/arm-unknown-linux-gnueabi/crosstool.config +++ b/samples/arm-unknown-linux-gnueabi/crosstool.config @@ -6,6 +6,7 @@ CT_BINUTILS_LINKER_LD_GOLD=y CT_BINUTILS_GOLD_THREADS=y CT_BINUTILS_LD_WRAPPER=y CT_BINUTILS_PLUGINS=y +CT_LIBC_glibc=y # CT_CC_GCC_SJLJ_EXCEPTIONS is not set CT_CC_LANG_CXX=y CT_DEBUG_duma=y diff --git a/samples/armeb-unknown-linux-gnueabi/crosstool.config b/samples/armeb-unknown-linux-gnueabi/crosstool.config index eb72062a..983c33da 100644 --- a/samples/armeb-unknown-linux-gnueabi/crosstool.config +++ b/samples/armeb-unknown-linux-gnueabi/crosstool.config @@ -7,6 +7,7 @@ CT_BINUTILS_LINKER_LD_GOLD=y CT_BINUTILS_GOLD_THREADS=y CT_BINUTILS_LD_WRAPPER=y CT_BINUTILS_PLUGINS=y +CT_LIBC_glibc=y # CT_CC_GCC_SJLJ_EXCEPTIONS is not set CT_CC_LANG_CXX=y CT_DEBUG_duma=y diff --git a/samples/armv6-rpi-linux-gnueabi/crosstool.config b/samples/armv6-rpi-linux-gnueabi/crosstool.config index 0affdb71..22fbfaac 100644 --- a/samples/armv6-rpi-linux-gnueabi/crosstool.config +++ b/samples/armv6-rpi-linux-gnueabi/crosstool.config @@ -9,6 +9,7 @@ CT_BINUTILS_LINKER_LD_GOLD=y CT_BINUTILS_GOLD_THREADS=y CT_BINUTILS_LD_WRAPPER=y CT_BINUTILS_PLUGINS=y +CT_LIBC_glibc=y CT_LIBC_LOCALES=y CT_LIBC_GLIBC_KERNEL_VERSION_CHOSEN=y CT_LIBC_GLIBC_MIN_KERNEL_VERSION="3.2.27" diff --git a/samples/armv7-rpi2-linux-gnueabihf/crosstool.config b/samples/armv7-rpi2-linux-gnueabihf/crosstool.config index 08f903d5..30b678dc 100644 --- a/samples/armv7-rpi2-linux-gnueabihf/crosstool.config +++ b/samples/armv7-rpi2-linux-gnueabihf/crosstool.config @@ -9,5 +9,6 @@ CT_BINUTILS_LINKER_LD_GOLD=y CT_BINUTILS_GOLD_THREADS=y CT_BINUTILS_LD_WRAPPER=y CT_BINUTILS_PLUGINS=y +CT_LIBC_glibc=y CT_CC_LANG_CXX=y CT_DEBUG_gdb=y diff --git a/samples/armv8-rpi3-linux-gnueabihf/crosstool.config b/samples/armv8-rpi3-linux-gnueabihf/crosstool.config index 117560ee..6d1d0f8f 100644 --- a/samples/armv8-rpi3-linux-gnueabihf/crosstool.config +++ b/samples/armv8-rpi3-linux-gnueabihf/crosstool.config @@ -9,5 +9,6 @@ CT_BINUTILS_LINKER_LD_GOLD=y CT_BINUTILS_GOLD_THREADS=y CT_BINUTILS_LD_WRAPPER=y CT_BINUTILS_PLUGINS=y +CT_LIBC_glibc=y CT_CC_LANG_CXX=y CT_DEBUG_gdb=y diff --git a/samples/i686-centos6-linux-gnu/crosstool.config b/samples/i686-centos6-linux-gnu/crosstool.config index 204f9fb6..86ec1f65 100644 --- a/samples/i686-centos6-linux-gnu/crosstool.config +++ b/samples/i686-centos6-linux-gnu/crosstool.config @@ -4,6 +4,7 @@ CT_ARCH_ARCH="i686" CT_TARGET_VENDOR="centos6" CT_KERNEL_linux=y CT_KERNEL_V_2_6_32=y +CT_LIBC_glibc=y # CT_KERNEL_LINUX_INSTALL_CHECK is not set CT_LIBC_GLIBC_V_2_12_2=y CT_CC_LANG_CXX=y diff --git a/samples/i686-centos7-linux-gnu/crosstool.config b/samples/i686-centos7-linux-gnu/crosstool.config index bb9f007d..b6403bbb 100644 --- a/samples/i686-centos7-linux-gnu/crosstool.config +++ b/samples/i686-centos7-linux-gnu/crosstool.config @@ -4,6 +4,7 @@ CT_ARCH_ARCH="i686" CT_TARGET_VENDOR="centos7" CT_KERNEL_linux=y CT_KERNEL_V_3_10=y +CT_LIBC_glibc=y # CT_KERNEL_LINUX_INSTALL_CHECK is not set CT_LIBC_GLIBC_V_2_17=y CT_CC_LANG_CXX=y diff --git a/samples/i686-nptl-linux-gnu/crosstool.config b/samples/i686-nptl-linux-gnu/crosstool.config index a59823cb..1f14d67f 100644 --- a/samples/i686-nptl-linux-gnu/crosstool.config +++ b/samples/i686-nptl-linux-gnu/crosstool.config @@ -6,6 +6,7 @@ CT_BINUTILS_LINKER_LD_GOLD=y CT_BINUTILS_GOLD_THREADS=y CT_BINUTILS_LD_WRAPPER=y CT_BINUTILS_PLUGINS=y +CT_LIBC_glibc=y CT_CC_LANG_CXX=y CT_DEBUG_duma=y CT_DEBUG_gdb=y diff --git a/samples/i686-ubuntu12.04-linux-gnu/crosstool.config b/samples/i686-ubuntu12.04-linux-gnu/crosstool.config index 030c109d..01c43127 100644 --- a/samples/i686-ubuntu12.04-linux-gnu/crosstool.config +++ b/samples/i686-ubuntu12.04-linux-gnu/crosstool.config @@ -4,6 +4,7 @@ CT_ARCH_ARCH="i686" CT_TARGET_VENDOR="ubuntu12.04" CT_KERNEL_linux=y CT_KERNEL_V_3_2=y +CT_LIBC_glibc=y # CT_KERNEL_LINUX_INSTALL_CHECK is not set CT_LIBC_GLIBC_V_2_15=y CT_CC_LANG_CXX=y diff --git a/samples/i686-ubuntu14.04-linux-gnu/crosstool.config b/samples/i686-ubuntu14.04-linux-gnu/crosstool.config index a67103a7..e3f459bc 100644 --- a/samples/i686-ubuntu14.04-linux-gnu/crosstool.config +++ b/samples/i686-ubuntu14.04-linux-gnu/crosstool.config @@ -4,6 +4,7 @@ CT_ARCH_ARCH="i686" CT_TARGET_VENDOR="ubuntu14.04" CT_KERNEL_linux=y CT_KERNEL_V_3_13=y +CT_LIBC_glibc=y # CT_KERNEL_LINUX_INSTALL_CHECK is not set CT_LIBC_GLIBC_V_2_19=y CT_CC_LANG_CXX=y diff --git a/samples/i686-ubuntu16.04-linux-gnu/crosstool.config b/samples/i686-ubuntu16.04-linux-gnu/crosstool.config index 3ceac410..9eec3c19 100644 --- a/samples/i686-ubuntu16.04-linux-gnu/crosstool.config +++ b/samples/i686-ubuntu16.04-linux-gnu/crosstool.config @@ -4,6 +4,7 @@ CT_ARCH_ARCH="i686" CT_TARGET_VENDOR="ubuntu16.04" CT_KERNEL_linux=y CT_KERNEL_V_4_4=y +CT_LIBC_glibc=y # CT_KERNEL_LINUX_INSTALL_CHECK is not set CT_LIBC_GLIBC_V_2_23=y CT_CC_LANG_CXX=y diff --git a/samples/mips-ar2315-linux-gnu/crosstool.config b/samples/mips-ar2315-linux-gnu/crosstool.config index 579c8011..55ae9353 100644 --- a/samples/mips-ar2315-linux-gnu/crosstool.config +++ b/samples/mips-ar2315-linux-gnu/crosstool.config @@ -5,6 +5,7 @@ CT_ARCH_FLOAT_SW=y CT_TARGET_VENDOR="ar2315" CT_KERNEL_linux=y CT_BINUTILS_PLUGINS=y +CT_LIBC_glibc=y CT_CC_GCC_mips_plt=y CT_CC_LANG_CXX=y CT_DEBUG_gdb=y diff --git a/samples/mips-malta-linux-gnu/crosstool.config b/samples/mips-malta-linux-gnu/crosstool.config index 308a4d80..624d01d1 100644 --- a/samples/mips-malta-linux-gnu/crosstool.config +++ b/samples/mips-malta-linux-gnu/crosstool.config @@ -2,6 +2,7 @@ CT_ARCH_mips=y CT_TARGET_VENDOR="malta" CT_KERNEL_linux=y CT_BINUTILS_PLUGINS=y +CT_LIBC_glibc=y CT_CC_GCC_mips_plt=y CT_CC_LANG_CXX=y CT_DEBUG_gdb=y diff --git a/samples/mipsel-multilib-linux-gnu/crosstool.config b/samples/mipsel-multilib-linux-gnu/crosstool.config index 656541cd..6f767a36 100644 --- a/samples/mipsel-multilib-linux-gnu/crosstool.config +++ b/samples/mipsel-multilib-linux-gnu/crosstool.config @@ -5,6 +5,7 @@ CT_ARCH_FLOAT_SW=y CT_TARGET_VENDOR="multilib" CT_KERNEL_linux=y CT_BINUTILS_PLUGINS=y +CT_LIBC_glibc=y CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY="--enable-targets=all" CT_CC_GCC_EXTRA_CONFIG_ARRAY="--enable-targets=all" CT_CC_GCC_mips_plt=y diff --git a/samples/mipsel-unknown-linux-gnu/crosstool.config b/samples/mipsel-unknown-linux-gnu/crosstool.config index 39ed4d64..11320bfd 100644 --- a/samples/mipsel-unknown-linux-gnu/crosstool.config +++ b/samples/mipsel-unknown-linux-gnu/crosstool.config @@ -4,6 +4,7 @@ CT_ARCH_ARCH="mips1" CT_ARCH_FLOAT_SW=y CT_KERNEL_linux=y CT_BINUTILS_PLUGINS=y +CT_LIBC_glibc=y CT_CC_GCC_mips_plt=y CT_CC_LANG_CXX=y CT_DEBUG_duma=y diff --git a/samples/x86_64-centos6-linux-gnu/crosstool.config b/samples/x86_64-centos6-linux-gnu/crosstool.config index 4eb46112..ad84a6c0 100644 --- a/samples/x86_64-centos6-linux-gnu/crosstool.config +++ b/samples/x86_64-centos6-linux-gnu/crosstool.config @@ -4,6 +4,7 @@ CT_ARCH_64=y CT_TARGET_VENDOR="centos6" CT_KERNEL_linux=y CT_KERNEL_V_2_6_32=y +CT_LIBC_glibc=y # CT_KERNEL_LINUX_INSTALL_CHECK is not set CT_LIBC_GLIBC_V_2_12_2=y CT_CC_LANG_CXX=y diff --git a/samples/x86_64-centos7-linux-gnu/crosstool.config b/samples/x86_64-centos7-linux-gnu/crosstool.config index 4a441efe..8ca023c1 100644 --- a/samples/x86_64-centos7-linux-gnu/crosstool.config +++ b/samples/x86_64-centos7-linux-gnu/crosstool.config @@ -4,6 +4,7 @@ CT_ARCH_64=y CT_TARGET_VENDOR="centos7" CT_KERNEL_linux=y CT_KERNEL_V_3_10=y +CT_LIBC_glibc=y # CT_KERNEL_LINUX_INSTALL_CHECK is not set CT_LIBC_GLIBC_V_2_17=y CT_CC_LANG_CXX=y diff --git a/samples/x86_64-multilib-linux-gnu/crosstool.config b/samples/x86_64-multilib-linux-gnu/crosstool.config index c2e4f697..d3e5b637 100644 --- a/samples/x86_64-multilib-linux-gnu/crosstool.config +++ b/samples/x86_64-multilib-linux-gnu/crosstool.config @@ -7,6 +7,7 @@ CT_BINUTILS_LINKER_LD_GOLD=y CT_BINUTILS_GOLD_THREADS=y CT_BINUTILS_LD_WRAPPER=y CT_BINUTILS_PLUGINS=y +CT_LIBC_glibc=y CT_LIBC_GLIBC_KERNEL_VERSION_NONE=y CT_CC_GCC_MULTILIB_LIST="m64,m32,mx32" CT_CC_GCC_LNK_HASH_STYLE_BOTH=y diff --git a/samples/x86_64-ubuntu12.04-linux-gnu/crosstool.config b/samples/x86_64-ubuntu12.04-linux-gnu/crosstool.config index c09ab9d8..3e2bc3fe 100644 --- a/samples/x86_64-ubuntu12.04-linux-gnu/crosstool.config +++ b/samples/x86_64-ubuntu12.04-linux-gnu/crosstool.config @@ -4,6 +4,7 @@ CT_ARCH_64=y CT_TARGET_VENDOR="ubuntu12.04" CT_KERNEL_linux=y CT_KERNEL_V_3_2=y +CT_LIBC_glibc=y # CT_KERNEL_LINUX_INSTALL_CHECK is not set CT_LIBC_GLIBC_V_2_15=y CT_CC_LANG_CXX=y diff --git a/samples/x86_64-ubuntu14.04-linux-gnu/crosstool.config b/samples/x86_64-ubuntu14.04-linux-gnu/crosstool.config index 68b3102f..4aa16c7c 100644 --- a/samples/x86_64-ubuntu14.04-linux-gnu/crosstool.config +++ b/samples/x86_64-ubuntu14.04-linux-gnu/crosstool.config @@ -4,6 +4,7 @@ CT_ARCH_64=y CT_TARGET_VENDOR="ubuntu14.04" CT_KERNEL_linux=y CT_KERNEL_V_3_13=y +CT_LIBC_glibc=y # CT_KERNEL_LINUX_INSTALL_CHECK is not set CT_LIBC_GLIBC_V_2_19=y CT_CC_LANG_CXX=y diff --git a/samples/x86_64-ubuntu16.04-linux-gnu/crosstool.config b/samples/x86_64-ubuntu16.04-linux-gnu/crosstool.config index fc10edba..37be3856 100644 --- a/samples/x86_64-ubuntu16.04-linux-gnu/crosstool.config +++ b/samples/x86_64-ubuntu16.04-linux-gnu/crosstool.config @@ -4,6 +4,7 @@ CT_ARCH_64=y CT_TARGET_VENDOR="ubuntu16.04" CT_KERNEL_linux=y CT_KERNEL_V_4_4=y +CT_LIBC_glibc=y # CT_KERNEL_LINUX_INSTALL_CHECK is not set CT_LIBC_GLIBC_V_2_23=y CT_CC_LANG_CXX=y diff --git a/samples/x86_64-unknown-linux-gnu/crosstool.config b/samples/x86_64-unknown-linux-gnu/crosstool.config index e88ae777..3f7c338e 100644 --- a/samples/x86_64-unknown-linux-gnu/crosstool.config +++ b/samples/x86_64-unknown-linux-gnu/crosstool.config @@ -5,6 +5,7 @@ CT_BINUTILS_LINKER_LD_GOLD=y CT_BINUTILS_GOLD_THREADS=y CT_BINUTILS_LD_WRAPPER=y CT_BINUTILS_PLUGINS=y +CT_LIBC_glibc=y CT_LIBC_GLIBC_KERNEL_VERSION_NONE=y CT_CC_GCC_LNK_HASH_STYLE_BOTH=y CT_CC_LANG_CXX=y diff --git a/samples/x86_64-w64-mingw32,arm-cortexa9_neon-linux-gnueabihf/crosstool.config b/samples/x86_64-w64-mingw32,arm-cortexa9_neon-linux-gnueabihf/crosstool.config index 5690be38..34d1ea1c 100644 --- a/samples/x86_64-w64-mingw32,arm-cortexa9_neon-linux-gnueabihf/crosstool.config +++ b/samples/x86_64-w64-mingw32,arm-cortexa9_neon-linux-gnueabihf/crosstool.config @@ -11,6 +11,7 @@ CT_KERNEL_linux=y CT_BINUTILS_LINKER_LD_GOLD=y CT_BINUTILS_GOLD_THREADS=y CT_BINUTILS_LD_WRAPPER=y +CT_LIBC_glibc=y CT_LIBC_ADDONS_LIST="libidn" CT_LIBC_LOCALES=y CT_LIBC_GLIBC_KERNEL_VERSION_NONE=y diff --git a/samples/x86_64-w64-mingw32,x86_64-pc-linux-gnu/crosstool.config b/samples/x86_64-w64-mingw32,x86_64-pc-linux-gnu/crosstool.config index 631e8f08..efd43a0a 100644 --- a/samples/x86_64-w64-mingw32,x86_64-pc-linux-gnu/crosstool.config +++ b/samples/x86_64-w64-mingw32,x86_64-pc-linux-gnu/crosstool.config @@ -10,6 +10,7 @@ CT_BINUTILS_LINKER_LD_GOLD=y CT_BINUTILS_GOLD_THREADS=y CT_BINUTILS_LD_WRAPPER=y CT_BINUTILS_FOR_TARGET=y +CT_LIBC_glibc=y CT_CC_LANG_CXX=y CT_DEBUG_ltrace=y CT_DEBUG_strace=y -- cgit v1.2.3 From dab327ed06800bf6609aa1b2e370e37e87ce9e80 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sun, 14 May 2017 12:26:59 -0700 Subject: Allow rebuilding aarch64-unknown-linux-android Otherwise, fails when checking if the destination dir is writable. Signed-off-by: Alexey Neyman --- samples/aarch64-unknown-linux-android/crosstool.config | 1 - 1 file changed, 1 deletion(-) (limited to 'samples') diff --git a/samples/aarch64-unknown-linux-android/crosstool.config b/samples/aarch64-unknown-linux-android/crosstool.config index fa147e25..339819c0 100644 --- a/samples/aarch64-unknown-linux-android/crosstool.config +++ b/samples/aarch64-unknown-linux-android/crosstool.config @@ -1,4 +1,3 @@ -# CT_RM_RF_PREFIX_DIR is not set CT_ARCH_arm=y CT_ARCH_64=y CT_ARCH_ARCH="armv8-a" -- cgit v1.2.3 From 97a20eed5c3cf3a2f7bb261705405b8b16c56b36 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sun, 14 May 2017 18:46:34 -0700 Subject: Disallow duma/ltrace/strace for bionic Allow cross-gdb and gdbserver. This requires removal of an explicit check that disables gdbserver on android. However, the comment above that check refers to exec_elf.h, which has been removed since API level 19. It builds fine with current selection of the sample (21). Only build-tested, hope someone can give it a try and report back. We can fine tune the check for GDB but I'll leave it for now. Signed-off-by: Alexey Neyman --- config/debug/duma.in | 1 + config/debug/gdb.in.native | 1 + config/debug/ltrace.in | 1 + config/debug/strace.in | 2 ++ patches/gdb/7.12.1/200-allow-android.patch | 42 ++++++++++++++++++++++ .../aarch64-unknown-linux-android/crosstool.config | 2 ++ 6 files changed, 49 insertions(+) create mode 100644 patches/gdb/7.12.1/200-allow-android.patch (limited to 'samples') diff --git a/config/debug/duma.in b/config/debug/duma.in index 170a6945..f9e727b8 100644 --- a/config/debug/duma.in +++ b/config/debug/duma.in @@ -1,6 +1,7 @@ # D.U.M.A. - Detect Unintended Memory Access - Memory checker ## depends on ! BARE_METAL +## depends on ! LIBC_bionic ## help D.U.M.A. - Detect Unintended Memory Access ## help A memory bound checker, with additional features. diff --git a/config/debug/gdb.in.native b/config/debug/gdb.in.native index e856b5da..faee8c3d 100644 --- a/config/debug/gdb.in.native +++ b/config/debug/gdb.in.native @@ -4,6 +4,7 @@ config GDB_NATIVE bool prompt "Native gdb" depends on ! BARE_METAL + depends on ! LIBC_bionic select EXPAT_TARGET select NCURSES_TARGET help diff --git a/config/debug/ltrace.in b/config/debug/ltrace.in index 4c626764..fab6b81f 100644 --- a/config/debug/ltrace.in +++ b/config/debug/ltrace.in @@ -1,6 +1,7 @@ # ltrace ## select LIBELF_TARGET +## depends on ! LIBC_bionic ## ## help ltrace is a program that simply runs the specified command until it exits. ## help It intercepts and records the dynamic library calls which are called by diff --git a/config/debug/strace.in b/config/debug/strace.in index 38dd96fd..e77702bf 100644 --- a/config/debug/strace.in +++ b/config/debug/strace.in @@ -1,5 +1,7 @@ # strace +## depends on ! LIBC_bionic + choice bool prompt "strace version" diff --git a/patches/gdb/7.12.1/200-allow-android.patch b/patches/gdb/7.12.1/200-allow-android.patch new file mode 100644 index 00000000..7954477c --- /dev/null +++ b/patches/gdb/7.12.1/200-allow-android.patch @@ -0,0 +1,42 @@ +diff -urpN gdb-7.12.1.orig/gdb/gdbserver/configure gdb-7.12.1/gdb/gdbserver/configure +--- gdb-7.12.1.orig/gdb/gdbserver/configure 2017-05-14 17:02:46.742711695 -0700 ++++ gdb-7.12.1/gdb/gdbserver/configure 2017-05-14 17:03:22.147058607 -0700 +@@ -6671,17 +6671,6 @@ fi + + + case "${target}" in +- *-android*) +- # Starting with NDK version 9, actually includes definitions +- # of Elf32_auxv_t and Elf64_auxv_t. But sadly, includes +- # which defines some of the ELF types incorrectly, +- # leading to conflicts with the defintions from . +- # This makes it impossible for us to include both and +- # , which means that, in practice, we do not have +- # access to Elf32_auxv_t and Elf64_auxv_t on this platform. +- # Therefore, do not try to auto-detect availability, as it would +- # get it wrong on this platform. +- ;; + *) + ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include + +diff -urpN gdb-7.12.1.orig/gdb/gdbserver/configure.ac gdb-7.12.1/gdb/gdbserver/configure.ac +--- gdb-7.12.1.orig/gdb/gdbserver/configure.ac 2017-05-14 17:02:46.742711695 -0700 ++++ gdb-7.12.1/gdb/gdbserver/configure.ac 2017-05-14 17:03:53.219361720 -0700 +@@ -179,17 +179,6 @@ AC_CHECK_TYPES(socklen_t, [], [], + ]) + + case "${target}" in +- *-android*) +- # Starting with NDK version 9, actually includes definitions +- # of Elf32_auxv_t and Elf64_auxv_t. But sadly, includes +- # which defines some of the ELF types incorrectly, +- # leading to conflicts with the defintions from . +- # This makes it impossible for us to include both and +- # , which means that, in practice, we do not have +- # access to Elf32_auxv_t and Elf64_auxv_t on this platform. +- # Therefore, do not try to auto-detect availability, as it would +- # get it wrong on this platform. +- ;; + *) + AC_CHECK_TYPES([Elf32_auxv_t, Elf64_auxv_t], [], [], + #include diff --git a/samples/aarch64-unknown-linux-android/crosstool.config b/samples/aarch64-unknown-linux-android/crosstool.config index 339819c0..295b219a 100644 --- a/samples/aarch64-unknown-linux-android/crosstool.config +++ b/samples/aarch64-unknown-linux-android/crosstool.config @@ -1,3 +1,4 @@ +CT_EXPERIMENTAL=y CT_ARCH_arm=y CT_ARCH_64=y CT_ARCH_ARCH="armv8-a" @@ -6,4 +7,5 @@ CT_KERNEL_linux=y CT_LIBC_BIONIC_V_14b=y CT_ANDROID_API_21=y CT_CC_LANG_CXX=y +CT_DEBUG_gdb=y CT_GETTEXT=y -- cgit v1.2.3