From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 45947 invoked by alias); 23 Dec 2019 22:58:50 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 45939 invoked by uid 89); 23 Dec 2019 22:58:50 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,SPF_PASS autolearn=ham version=3.3.1 spammy=Application, H*Ad:U*crossgcc, HTo:U*crossgcc, Home X-HELO: out-7.smtp.github.com Received: from out-7.smtp.github.com (HELO out-7.smtp.github.com) (192.30.252.198) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 23 Dec 2019 22:58:48 +0000 Date: Mon, 23 Dec 2019 22:58:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1577141927; bh=X/KxhCXBYaeywkYCN0faiuELrfV19P2bkq4Lf7nEiSk=; h=Date:From:To:Subject:From; b=tforaDX4ZjPAbzw7AlUh33PJAEBX7CC/m04jwUTowd+jjgxFDSiIdOhOfGJCFOeYX LF5qmFxZqYJW1E0prePw2MSeHhX3ziKH2A/vDJB0PDZncmencrnzlzUBbx/ZIZC/un YrYQs8I0fH1Qv7EiL9YS7kCnkCIpF8ov+q7cnOLo= From: Alexey Neyman To: crossgcc@sourceware.org Message-ID: Subject: [crosstool-ng/crosstool-ng] de0d1d: Resepct CT_TARGET_{C,LD}FLAGS when building musl Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-GitHub-Recipient-Address: crossgcc@sourceware.org X-Auto-Response-Suppress: All X-SW-Source: 2019-12/txt/msg00006.txt.bz2 Branch: refs/heads/master Home: https://github.com/crosstool-ng/crosstool-ng Commit: de0d1dbe023c3df09efbdaf6786c9c30e985ccfb https://github.com/crosstool-ng/crosstool-ng/commit/de0d1dbe023c3df09efbdaf6786c9c30e985ccfb Author: Dima Krasner Date: 2019-12-04 (Wed, 04 Dec 2019) Changed paths: M scripts/build/libc/musl.sh Log Message: ----------- Resepct CT_TARGET_{C,LD}FLAGS when building musl I was trying to build static binaries for a range of Broadcom soft-float ARMv7 SoCs and kept getting SIGILL, although I was targeting Cortex A7 (and A5, later), even on A9 and A15. I found out that once I add -msoft-float, +mp+sec is to blame: Attribute Section: aeabi File Attributes - Tag_CPU_name: "7VE" + Tag_CPU_name: "7" Tag_CPU_arch: v7 - Tag_CPU_arch_profile: Application - Tag_ARM_ISA_use: Yes Tag_THUMB_ISA_use: Thumb-2 Tag_ABI_PCS_wchar_t: 4 Tag_ABI_FP_rounding: Needed @@ -12,8 +10,5 @@ File Attributes Tag_ABI_FP_number_model: IEEE 754 Tag_ABI_align_needed: 8-byte Tag_ABI_enum_size: int Tag_ABI_optimization_goals: Aggressive Size Tag_CPU_unaligned_access: v6 - Tag_MPextension_use: Allowed - Tag_DIV_use: Allowed in v7-A with integer division extension - Tag_Virtualization_use: TrustZone and Virtualization Extensions (This is the readelf -A diff, before and after armv7-a+nofp -> armv7+nofp). I kept getting SIGILL even after building my application with a toolchain built with the correct CFLAGS and found out that crosstool-ng doesn't pass the host CFLAGS when building musl, which pollutes my binary with these ARMv7 extensions. Signed-off-by: Dima Krasner Commit: e0a63b85460876325154305b472459a9231384aa https://github.com/crosstool-ng/crosstool-ng/commit/e0a63b85460876325154305b472459a9231384aa Author: Alexey Neyman Date: 2019-12-23 (Mon, 23 Dec 2019) Changed paths: M scripts/build/libc/musl.sh Log Message: ----------- Merge pull request #1280 from dimkr/musl-cflags Resepct CT_TARGET_{C,LD}FLAGS when building musl Compare: https://github.com/crosstool-ng/crosstool-ng/compare/f8864925304e...e0a63b854608