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 EC0A8C43217 for ; Tue, 22 Nov 2022 17:32:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8D22485489; Tue, 22 Nov 2022 18:32:08 +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="bSPtUAw5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9D0EF8549E; Tue, 22 Nov 2022 18:32:05 +0100 (CET) Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) (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 6BD8F85486 for ; Tue, 22 Nov 2022 18:32:01 +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-qk1-x736.google.com with SMTP id x18so10762432qki.4 for ; Tue, 22 Nov 2022 09:32:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; 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=NOsm8Zgcjdz3Xz5oyqh9N8qXsygCixXKr4+gDLf6pfY=; b=bSPtUAw5KLh0yZeycZHUzOfMTaKqH1861n/VhNuxzrVaAKbGJH44mnGiyd4WWl1p1a IfRImsFUl5FHEX6txOHPuWlrqbA34KbUPFaC7ZKPEmLMVfScMzcwUAc7x3/aSy6Sk2Qy vRMGM4TcfqFAmQqLoB1DDTTxVcNWWHJCEgEdM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=NOsm8Zgcjdz3Xz5oyqh9N8qXsygCixXKr4+gDLf6pfY=; b=3WaxT+3nSsVwf07CWbBe5Xs7ni22J7toumTioVZN7axnFA1zRiBnVYFwvrlnykwe5e A/iGpLaaa2mnvNjrkVIFWSb3EwkeFL5MMltom+dful82JnjUvWmQM5XsjZGl81u0/tjt HpXq4yeClsUHMnPbHjvk8zX2X5rcsKjjjxbKuXWA7AlDe9SpkUoxe1mk8xeahzI66oDN eY0nPpwQ/pvIBGwssuA7NXiZ6fHj0Qfdq4axa3Pe8Qu0UIWPNvFjJG6j4EEsXtjsYvVZ NIpQO/ByJnMPRzl4faunYYOJP4tEDMmM/DHCNvQM0o3f2JIcXKcFm96OJ/peZlJEE2ql u8DA== X-Gm-Message-State: ANoB5pmOBnLsffCTPm5Vp6jJgeS6U5Tyexi+O94QVGsMnSiHdoMmmpiV AXBhoItaNsnuMpD/sqp/Gqo7l2PD4/gTNw== X-Google-Smtp-Source: AA0mqf7liU4s2w2JS5OO55SaF/SVAVNlWAv0kwhC6BYz8EeQacgbaW5xD3adxpXXg6h8fFD8sJZang== X-Received: by 2002:a37:6847:0:b0:6fa:22f4:6a62 with SMTP id d68-20020a376847000000b006fa22f46a62mr6308699qkc.268.1669138319850; Tue, 22 Nov 2022 09:31:59 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-e0b4-8d94-202b-686a.res6.spectrum.com. [2603:6081:7b00:6400:e0b4:8d94:202b:686a]) by smtp.gmail.com with ESMTPSA id h9-20020a05620a284900b006f9ddaaf01esm10709420qkp.102.2022.11.22.09.31.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 09:31:59 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 2/6] Makefile: Enforce DWARF4 output Date: Tue, 22 Nov 2022 12:31:54 -0500 Message-Id: <20221122173158.2231821-2-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221122173158.2231821-1-trini@konsulko.com> References: <20221122173158.2231821-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.6 at phobos.denx.de X-Virus-Status: Clean At this point in time, using DWARF-5 format isn't easy to do by default with all toolchains that we support. And relying on the implicit default can lead to mixing 4 and 5 and then the debug info not being useful to tools. For now, enforce using DWARF-4 only. Signed-off-by: Tom Rini --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 47dbdcc6ae3d..eb7a8b90230e 100644 --- a/Makefile +++ b/Makefile @@ -761,10 +761,10 @@ KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized) # change __FILE__ to the relative path from the srctree KBUILD_CFLAGS += $(call cc-option,-fmacro-prefix-map=$(srctree)/=) -KBUILD_CFLAGS += -g +KBUILD_CFLAGS += -gdwarf-4 # $(KBUILD_AFLAGS) sets -g, which causes gcc to pass a suitable -g # option to the assembler. -KBUILD_AFLAGS += -g +KBUILD_AFLAGS += -gdwarf-4 # Report stack usage if supported # ARC tools based on GCC 7.1 has an issue with stack usage -- 2.25.1