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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E2C43C64EC4 for ; Thu, 9 Mar 2023 16:22:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 21B8C85B78; Thu, 9 Mar 2023 17:22:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="AEQ6ZBU5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 913D285CA2; Thu, 9 Mar 2023 17:22:22 +0100 (CET) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0A18C85AB0 for ; Thu, 9 Mar 2023 17:22:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82f.google.com with SMTP id c3so2531064qtc.8 for ; Thu, 09 Mar 2023 08:22:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1678378936; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=QQNWSO4TdpdiG71pTFxetIxKtOsqpnbkxms7xYp/nNg=; b=AEQ6ZBU5hte4HNqHDkz3+ugawj77M5mj3hp3NdQNMznvWAH2FY7JU5xxi4EryzGnZG f7wAWG+194SLd/XN+CPFGGjjUaFwcCgXyRzPm5mYshrjnbXTCJC39jtsgCTCweATf7Cb R3asg2HO+IjL8YKAn+Ifda3kgf0itFfxynfXk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678378936; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QQNWSO4TdpdiG71pTFxetIxKtOsqpnbkxms7xYp/nNg=; b=6yW5Q3HqiJGyO+qt/il4LzZ3EGn2Y9jpyLw19AUgVYgjEzY6CArAY6vEJ9ynqNuvbL mYJ3XAxno8vHCCugP35F91DTIwXyxrVE6XFdeBd/BYcZKMQLaHjgqIVxGLBoRKBQMaQj 0Mnlepvp5AeuJl7yGJ6/NH/nFKi3jHy60f1B7BhvGzovxsICII/FkQgxwHHq5FIhWszJ 4OHeJce0CZKZVwkRON3I7cGd44RLfN1ytG0LTApT6twveL7FV63qP8Umo+GlJifBIS0P Ai7TK7AO0ivx9jkPf5ASu7Xs4QNbvkK/oRLzrd78qgrkfhtH2WNfZf33M5gWnh3iVaWy Pqyg== X-Gm-Message-State: AO0yUKXCCmepUEeo1bYZ4whNcnbo+23TJMJjyikMJZMPAcPy/CXnnw8p stzB7VMxv6m2DZIyjY9PddtOO8T1bbfBZKzTyTKv3g== X-Google-Smtp-Source: AK7set/HYP78NXA1dZQefC3gLaK5DZOdRnz6a2xNpoReRMY26cLLyZ3OwznmVB0r1/mjaVkjULEnqw== X-Received: by 2002:a05:622a:24b:b0:3b9:b422:4d69 with SMTP id c11-20020a05622a024b00b003b9b4224d69mr40866769qtx.39.1678378935772; Thu, 09 Mar 2023 08:22:15 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-0000-0000-0000-036b.res6.spectrum.com. [2603:6081:7b00:6400::36b]) by smtp.gmail.com with ESMTPSA id r145-20020a37a897000000b0073b69922cfesm13828287qke.85.2023.03.09.08.22.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 08:22:15 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 3/6] examples: Don't use LTO for hello_world Date: Thu, 9 Mar 2023 11:22:09 -0500 Message-Id: <20230309162212.2096573-3-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230309162212.2096573-1-trini@konsulko.com> References: <20230309162212.2096573-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean If we're building U-Boot with LTO, we don't want to use that for examples as it's more work than required. Signed-off-by: Tom Rini --- examples/standalone/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile index 5b48a9d43c62..559170dd5c97 100644 --- a/examples/standalone/Makefile +++ b/examples/standalone/Makefile @@ -29,6 +29,10 @@ targets += $(patsubst $(obj)/%,%,$(LIB)) $(COBJS) $(LIBOBJS-y) LIBOBJS := $(addprefix $(obj)/,$(LIBOBJS-y)) ELF := $(addprefix $(obj)/,$(ELF)) +# Disable LTO for these builds +CFLAGS_REMOVE_hello_world.o := $(LTO_CFLAGS) +CFLAGS_REMOVE_stubs.o := $(LTO_CFLAGS) + # For PowerPC there's no need to compile standalone applications as a # relocatable executable. The relocation data is not needed, and # also causes the entry point of the standalone application to be -- 2.34.1