From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2046.outbound.protection.outlook.com [40.107.20.46]) by sourceware.org (Postfix) with ESMTPS id 484EB3857B8C for ; Fri, 17 Jun 2022 07:25:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 484EB3857B8C ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=nvEbShtxQH7cTtq3a+L6WPpcJGo4l5PEcbwof8PvV4xCQf6QMILwDespzVATs1RwakeSe5KlNSNc+DPLIsMgLprQtjYJ3SwhSTzNUAhs7CiUwRQdM4eTiVDvhxcv4atbWgPmRLwUvQ6JzzEscINoxvXJfh9YGugYXf3jad6lSNb1T3fchguroejg/FUAMNNMr9qT01b7bRN0rvKTivdbwuS7INhrQ0xqgQrUVODUMsbPAOzXBfdkle6qSzLywhRKXIXKRgEnBWsZucnNZYg6IGM8T1PvRd1tMzByNe9K6SfbHzyx+EGR47FfypW5I0Z8p/ZMFsM/eOcb4AjzfiemPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EEq225ukqvr6Xfo/ryxY8ebiQaqCBJEAd2wvu9P7W9Q=; b=XZzUSz459GcNCIHZR9EC/pEUf+shPuYHDZ1desnIGxFCTnmP+sE92gLF9dSde4nPmLEmIeLt5mBe6RiOTUNMfI6D6LbMeaOx7W1WlFppwfRyJsSCvwMpH9HxaRYtqq9Y1B9DeIYGp/obdIUGjdtQqsQJRbOW0OyUwEk4mnGnuUU3ZqEmY88YusGCev94bPDKqZL+YJjmVEHa6cIQB7cOBU57+FxG5z42wJ9f9E2NWOO+dTlqegsFnHXLznCD/oGHcL5XFN9Gog3bVtsBrKJd796T8lWcRhS8a0qUzJUdmXEUoe2F3v+oL/H7VqsDFh53bYd2gI7AqQKdjQt73gns3A== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) Received: from DB6P195CA0003.EURP195.PROD.OUTLOOK.COM (2603:10a6:4:cb::13) by AS8PR08MB8112.eurprd08.prod.outlook.com (2603:10a6:20b:54e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.22; Fri, 17 Jun 2022 07:25:09 +0000 Received: from DBAEUR03FT028.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:cb:cafe::cb) by DB6P195CA0003.outlook.office365.com (2603:10a6:4:cb::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15 via Frontend Transport; Fri, 17 Jun 2022 07:25:09 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DBAEUR03FT028.mail.protection.outlook.com (100.127.142.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.14 via Frontend Transport; Fri, 17 Jun 2022 07:25:09 +0000 Received: ("Tessian outbound 6f53897bcd4e:v120"); Fri, 17 Jun 2022 07:25:09 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 52d2f555c8a87111 X-CR-MTA-TID: 64aa7808 Received: from 8f4edcbdf536.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 412F0488-F14F-4DD6-8431-FCBC559F59DA.1; Fri, 17 Jun 2022 07:25:02 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 8f4edcbdf536.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 17 Jun 2022 07:25:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V8rQI0vwBvzaXKID4lnbrW76PQ7mQBMQmvfho8EgNwWVR217I54wgaQCSE1GFZwIrvaui7K326c2NWXsrmdJQrqv2ThQoQ3zxry7qKs8OLFkJnsJNvNAYmtsrELNdnlbltrErwL+nJoLj/9fyvppiM1jqgravgdKPPjN1bxBFzMUFUTBM1ScM/Aa0UULqFxa0bIAqZ2egTWmvZGP4H43p5SobvS9PbUubQYBY5TpqXi/aIDlqqPGJX/jQTfOvpw5o0zFWhKA7UzXIhksx58sK7FyPRZDC3IAu6uJG3PRXJazoFgYEGpD4LyIvcfTr09qfpcI8/yLlmTvQDeUt2J0hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EEq225ukqvr6Xfo/ryxY8ebiQaqCBJEAd2wvu9P7W9Q=; b=gUm+DwkDX9NnOmNxK1AFtZyi1aEy1xr3qsQo3KJaVH1ZEaTEUGRzj7OIRC6Xdnlb2KHhIeBguTjJcwqQ7EL0hb3DKTysN/j3KcNG3qk68Iji/5UX6Gq7f+/ztJEiSaBuAJcGtgMVYsEOfuRh+lehGUqTHoEdVH2mVoaNvPHiGm6+POc09aK5LWVvTFfK+oqmNkpsByWgCbLj7pdtDl/Wwi35VwKhY3z1oE4L4xURDrumulzAW1VKBZtaE4M1LqLfWFYv4TkZISNHlQX6XQki27SsSebhmhs00FRRNq7uIlJaNOlShOep2TbRiztu0TcGnkX7Wtt1+RaIyRqostO85A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB3390.eurprd08.prod.outlook.com (2603:10a6:803:7d::27) by VI1PR08MB4335.eurprd08.prod.outlook.com (2603:10a6:803:fc::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Fri, 17 Jun 2022 07:24:56 +0000 Received: from VI1PR08MB3390.eurprd08.prod.outlook.com ([fe80::cdb3:a384:9d30:a6b2]) by VI1PR08MB3390.eurprd08.prod.outlook.com ([fe80::cdb3:a384:9d30:a6b2%7]) with mapi id 15.20.5353.016; Fri, 17 Jun 2022 07:24:55 +0000 Message-ID: Date: Fri, 17 Jun 2022 09:25:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: Anybody ever got an ARM Thumb-2 cross compiler to work? Content-Language: en-US To: gcc-help@gcc.gnu.org References: From: Christophe Lyon In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P265CA0045.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2ac::21) To VI1PR08MB3390.eurprd08.prod.outlook.com (2603:10a6:803:7d::27) MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 0ee94422-b5b6-4cbf-f617-08da50328247 X-MS-TrafficTypeDiagnostic: VI1PR08MB4335:EE_|DBAEUR03FT028:EE_|AS8PR08MB8112:EE_ X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: yMSzS0LMtwdatBB4VXNwufXpC/AlqsdZTZ7FpNueH0ANXU1ixl55PvmOyNd93cbz9OSRQgUSeDBCYML1rkY4CYDYCXlmC6mpbfH1FF1VVOxU9KXhDHHlX92C36RXj3rikn7XBM5pUuchioVdovXGaHLha9lYNljH6wOhO60jXBO2+LcAECBtdF2I4Vy1ZSWcQj5oTe9kRhcB2tvV7Wp8YxUR1bYalI7ealCspshhLIuXXQV8q6LTzWT2YOB+GErZSJky8moHCwA6F4xwNj/Gt3obaUtaSNLBZREqN6iuAonplgwrXUpA/phykovQmLoWabxOtTXSFSFmTftLWxtN4Z+Nji7/wYhcf5qN3LQcoeRVRwbUPleLr0lY3eYWY7yBKAa+g/qlOCI51i6NThJ7+TX2lA3kM6BwvAn5AKsATy8IfTmZdhHHTxEoDRPx0R6nkKxcWFOWHsySIKV82CH7J05WJx9hfQckyUI50/+Qk3ypjldpT+Zozov4WiGw5sK9uGNePmdJQzVG4QP4TdMZsgu6EfSMEfzvQq1ML8hL2X2v5fr4hiPPZatse6djz1Z2nuhpZag1sFYkswFm7ChEEtMixSOkzdwaoCOiBKLtX3U0DNNGrV1L1fA9Ih1oY18q4HGKz2iP9xNP3u6tSKcSXKpGcl2p6+kOCacCiGtHdORPmloQNOPQtf0KNj5ba1Zei1mmg1mgGAHEACA6949Mqy1gvUlVVjf0gtX8YBwLLNAYXY4N0CrAer1HeNlhq3A+II/wO9B9Tc0ehcXinXlh8BK0GlSX7FvMucKjjrFirFLZlKtSEM8NVqfuUr0Bt8H1E45L9cKw2XDbnZjksf1xBA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB3390.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(366004)(5660300002)(31696002)(53546011)(6486002)(86362001)(6506007)(6512007)(966005)(66946007)(498600001)(44832011)(26005)(2906002)(6666004)(186003)(2616005)(8936002)(38100700002)(66556008)(83380400001)(36756003)(316002)(6916009)(8676002)(66476007)(31686004)(21314003)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB4335 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT028.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 26304913-47d9-4e4b-8d92-08da50327971 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: b2Ih41KxQMvzFUlmjmoHALtObmmYCTJIY+hfj/NUrrxUWtX/KOE2U/cAIL++gsu1+CRHMDLIVDiv1dKY014gRw6Cb8iF3ZXvxgipMsNZTM6cABzIPjdBoP+LsftE4UD1fsEi9sJ70i4qyE+Qi4LX0/s/BYgoOipxQUi+6osLPX+Oe0qQnaSZDNn9KaorgwkNlTMbp+wT/EF6cy8DzBJWdTtgCwJOyuEK46SlWbye5MO+TM5QjW+GQ0Qebz69DM4ThpBkVHl2PmG1fnA+Mw6gUSUSiv+laO905tmmgg+MB8HXApbM1aV7g1zAAXiFkxdqaHLx6kyL3BuAM4ITWGOkwvT2/8oNCqqR/hDs+ITV6U+sQS+1iy2DQekmcMTi+t3hkNEmlt29zTs4oedDzftCmenzU34yOhkAgcPcd4e2WBhnk6euxjL8ghNiJJmhg/mzfp0/mJuG2FvQTwqWvcV3EZEsR9KGDM4tx1rCTLFNHPUYkj2hG2U4W4YcmqJaKFa/iSMnvO5CBTWEyL+VvWjX6QoZfM1WeGIMtAsiWqa9kAq64ZIW21a7WudkYk9DSFNHSFXs/aFu7D+YISOnNugV8TnjCIWDKuHI+yoiWATqdV5geLwkZ4uZ9hixPegkLL2MxTTrR3gLVfQTShByT6mP7/JuBp0PrITq5Bj/eN8c9iAjSvmKok+hdrtoKNMGbRHB1QTD0y/DLmC80ybZEqaW3+y9EuhKBNJHtdZro/KA9oqX4YrXIZAGm9KVUx+4ST19eVIkghYZHn7IALrDbiEtCnrY3sfELOheJ/aQ2gIDt4Sqk3hbfYmu0LcA5o6iKNA3 X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230016)(4636009)(36840700001)(46966006)(40470700004)(316002)(86362001)(31696002)(70586007)(8676002)(26005)(81166007)(6916009)(8936002)(6666004)(53546011)(5660300002)(36860700001)(336012)(40460700003)(356005)(6512007)(70206006)(6506007)(83380400001)(966005)(6486002)(47076005)(82310400005)(36756003)(186003)(44832011)(498600001)(2906002)(2616005)(31686004)(21314003)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 07:25:09.0687 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0ee94422-b5b6-4cbf-f617-08da50328247 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DBAEUR03FT028.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB8112 X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, KAM_DMARC_NONE, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2022 07:25:14 -0000 I believe these releases support the LTO plugin, but the most recent at the moment is 11.x. If you need GCC 12, you'll have to wait a bit :-) Thanks, Christophe On 6/16/22 23:06, Gary Oblock via Gcc-help wrote: > Chistophe, > > That would work for me if it's GCC 12 based and built to support the LTO "pluggin." > Would you know if that's the case? > > Thanks, > > Gary > ________________________________ > From: Christophe Lyon > Sent: Thursday, June 16, 2022 12:45 AM > To: Gary Oblock > Cc: Jonathan Wakely ; Gary Oblock via Gcc-help > Subject: Re: Anybody ever got an ARM Thumb-2 cross compiler to work? > > [EXTERNAL EMAIL NOTICE: This email originated from an external sender. Please be mindful of safe email handling and proprietary information protection practices.] > > Hi Gary, > > Sorry, your request is not entirely clear to me either. > IIUC what you want to achieve has been working for decades and is certainly not obsolete :-) > > If you don't need to build such a toolchain, you can download pre-built binary toolchains from Arm for instance: > https://developer.arm.com/Tools%20and%20Software/GNU%20Toolchain#Technical-Specifications > > If you want to build a cross toolchain, it's not straightforward but very well supported. I think there are already plenty of documentation describing how to do that. > > The important thing is to get the right target triplet when configuring your toolchain, you want something like arm-eabi or arm-linux-gnueabi, as opposed to aarch64*. > > Once the build has completed, when using the compiler make sure to generate code for an architecture/cpu that actually supports Thumb-2 (via -march=XX/-mcpu=XXX), and use -mthumb, as it's generally not the default. > > Christophe > > > On Thu, Jun 16, 2022 at 9:11 AM Gary Oblock via Gcc-help > wrote: > Jonathan > > By off the shelf, I mean not creating a new target description file. Something > which I'm not at all experienced in (optimizations are my thing so I'm an > amateur at creating a cross-compiler.) > > I can't seem to figure out what the binutils or the gcc target is for Thumb-2. > If you know, please let me know. I suspect that is an obsolete target > that no longer exists for the latest binutils and GCC 12. > > Thanks, > > Gary > > ________________________________ > From: Jonathan Wakely > > Sent: Wednesday, June 15, 2022 11:31 PM > To: Gary Oblock > > Cc: Gary Oblock via Gcc-help > > Subject: Re: Anybody ever got an ARM Thumb-2 cross compiler to work? > > [EXTERNAL EMAIL NOTICE: This email originated from an external sender. Please be mindful of safe email handling and proprietary information protection practices.] > > > > On Thu, 16 Jun 2022, 00:18 Gary Oblock via Gcc-help, >> wrote: > The subject line says it all... > > I'm beginning to think off the shelf gcc cross compilers are impossible > to create because of binutils. > > Why? > > What do you mean by "off the shelf"? > > At other companies we for the most part > created custom assemblers, loaders and libraries from scratch > when we built a gcc cross compiler. > > Why can't you just build a cross binutils too?