From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A96E8C4332F for ; Mon, 17 Jan 2022 17:30:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=efQT0zgLTtLsQZfB1zuzoV5CZW8szrGJHFYFuxNee1I=; b=EZs2Rn4v91+I5F r70VF/cmEDQr9QtfItMdS4DUCOfTJKmMDu2T3RRhHMhQnInnZa1Ui5ZaQRTsnrBqe9R1p1LDsSlHd BvFz3/JeM+AE6/xVImWV3cG0xO+jJOwC9DJBsYLSQ5aObMuqNdqoxkTa++4nN31fZev2R6ezBX7jH XCN4BkR0rph+cDzXVBax9SzXSvIhVJ70WHw1p3p0zIqxNejSxXNeLAG0yCMCRiXQ1ssXPlZo8IcSH NKHO1jjqL4MZ8Ykc8u2jZ8pnX4u7MHJKt5UO4fZvISJZkcvklCq8W2FhxkInwzCNvghJ09GCjmaq4 88UGzG+tyf4uwYgS1rTw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9Voq-00Fuol-0G; Mon, 17 Jan 2022 17:29:24 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9Vjk-00FsT4-E8 for linux-arm-kernel@lists.infradead.org; Mon, 17 Jan 2022 17:24:09 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B89C06D; Mon, 17 Jan 2022 09:24:06 -0800 (PST) Received: from C02TD0UTHF1T.local (unknown [10.57.38.30]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D809B3F766; Mon, 17 Jan 2022 09:24:05 -0800 (PST) Date: Mon, 17 Jan 2022 17:24:03 +0000 From: Mark Rutland To: Andre Przywara Cc: Jaxson Han , linux-arm-kernel@lists.infradead.org, Robin Murphy Subject: Re: [PATCH v3] Makefile: Tell compiler to generate bare-metal code Message-ID: <20220117172403.GC94025@C02TD0UTHF1T.local> References: <20220117153348.2513798-1-andre.przywara@arm.com> <20220117164720.GA94025@C02TD0UTHF1T.local> <20220117165310.769a4799@donnerap.cambridge.arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220117165310.769a4799@donnerap.cambridge.arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220117_092408_560418_A2149527 X-CRM114-Status: GOOD ( 17.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jan 17, 2022 at 04:53:10PM +0000, Andre Przywara wrote: > On Mon, 17 Jan 2022 16:47:20 +0000 > Mark Rutland wrote: > > > Hi Andre, > > > > On Mon, Jan 17, 2022 at 03:33:48PM +0000, Andre Przywara wrote: > > > Our GCC invocation does not provide many parameters, which lets the > > > toolchain fill in its own default setup. > > > In case of a native build or when using a full-featured cross-compiler, > > > this probably means Linux userland, which is not what we want for a > > > bare-metal application like boot-wrapper. > > > > > > Tell the compiler to forget about those standard settings, and only use > > > what we explicitly ask for. In particular that means to not use toolchain > > > provided libraries, since they might pull in more code than we want, and > > > might not run well in the boot-wrapper environment. > > > > Thanks for splitting this out; I'd like to apply this with two minor > > fixups (which I'll apply locally if you agree). > > Yes, I am fine with those changes, please go ahead! Thanks; I've applied those and pushed that out. Mark. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel