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 F1F93C6FD1D for ; Fri, 7 Apr 2023 05:45:25 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DC41686113; Fri, 7 Apr 2023 07:45:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinylab.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 03D2086143; Fri, 7 Apr 2023 07:45:22 +0200 (CEST) Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.221.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6D426804DB for ; Fri, 7 Apr 2023 07:45:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinylab.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng@tinylab.org X-QQ-mid: bizesmtp88t1680846310ta7ar0x5 Received: from pek-vx-bsp2.wrs.com ( [60.247.85.88]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 07 Apr 2023 13:44:59 +0800 (CST) X-QQ-SSF: 01200000000000D0F000000A0000000 X-QQ-FEAT: X57HqaPPDYQ/jaBMAjJ1qrGG3bSHGEIVAmvwql7OKc+LRxqPttbTKlZNuRVbU Si3GesAGB2CrNZPOMt9Bs3suj4zYYPPLQIh8Vj0kzNOjMdRAppRO7FjD4B6+rzfucBQ69XD p0K6eTb8o80ODHaRsHvA+OXMnnc8ZRsbJTGYsb3yxuvAw659pjdiqVlbH5haux4rMXqskCU FXMm+e40h2lR8c59moZSaSvELevZA/Z+0Z3ukESto2+mhOEuK5s+u34sULcypLv2z5hqXRg sFH5S+7E+l8Z5WDyT8etfM4iYebCxL63cP35gCgGPPxkNLzDvAE0XHzJWxcPJP3hAF9QlVo bT7f0PCp0O5lz9MpnA= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 7747090579056445254 From: Bin Meng To: Leo , Rick Chen , u-boot@lists.denx.de Subject: [PATCH] riscv: Enforce DWARF4 output Date: Fri, 7 Apr 2023 13:44:59 +0800 Message-Id: <20230407054459.2883433-1-bmeng@tinylab.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvr:qybglogicsvr3 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 Since commit 409e4b547872 ("Makefile: Enforce DWARF4 output") the whole U-Boot build switched to enforce DWARF4 output, but RISC-V is still on its own setting. Let's switch to use U-Boot's setting. Signed-off-by: Bin Meng --- arch/riscv/config.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/riscv/config.mk b/arch/riscv/config.mk index a8ed3faf28..f74c3f37e6 100644 --- a/arch/riscv/config.mk +++ b/arch/riscv/config.mk @@ -24,8 +24,7 @@ EFI_LDS := elf_riscv64_efi.lds endif PLATFORM_CPPFLAGS += -ffixed-gp -fpic -PLATFORM_RELFLAGS += -fno-common -gdwarf-2 -ffunction-sections \ - -fdata-sections +PLATFORM_RELFLAGS += -fno-common -ffunction-sections -fdata-sections LDFLAGS_u-boot += --gc-sections -static -pie EFI_CRT0 := crt0_riscv_efi.o -- 2.25.1