Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1225701rdb; Wed, 20 Sep 2023 03:24:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGRKh0h2RbvwQ4KLsV35AC1TFnuigSpKWHwVZqZHzaDClcNN8W7zWzxLX4UWaVFj8TL9cOf X-Received: by 2002:a25:d446:0:b0:d81:bb7e:f47f with SMTP id m67-20020a25d446000000b00d81bb7ef47fmr2385079ybf.44.1695205480218; Wed, 20 Sep 2023 03:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695205480; cv=none; d=google.com; s=arc-20160816; b=ozhTWvAsTHDnUqa495twobq2+8nsdqJv5bMz06uPnI/zlJaIz8qGnuCp69xobxoCGn ySyyFfQ5xgd5QYVX0lAbMFdUD6jK9jCY1eJbF1fow0eZTG3cDskv9a1pYIDqMNwGc5eZ LWu0Fkvfy3Nmt5BgW+E1R4dQrMulXGblRg6hds7b3XWxVMQ3RG4XNSFe4Wy7us4SGanU TIEbe2iMhHLU3q+s+pw4HywCGGrcYam6ubFZg02240PireTPtvu0nmFMJfuy5b3uwUrR dl3bH8WA7zdMkCmJMRs3qS6Yf8G811c8vNw8jYU4PGpXN+k2QvQor/o5nKkB2yOQyzji 0ITg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :in-reply-to:from:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=PjG3WODgjnMfl0gKQ4gxjcowPru+GlTYfRNI4FSZEQw=; fh=fIQ7hOgLMrPQmVgCwSK8lQcu/Wr53zxZpNtYUojomcg=; b=SF9QKrhK4mPKjdXhry5gy1BQcSKMbNfD99Pw/VSiZdyV/2377JEHy+QT0AE1S2lF6s cKOZGoCskW+A58ZTwSVptlhsVBS+JUW9MnaE77M5VcJ/zbeNx8Lz1xSm6W2kvCtoe6EH kEdD0Obnf9S9ue6SCYrizTD5s1AAm2bN4p/N9a7Jcwe/KCtSh1vUUTDFMaJ9fP7VP5KS XYXnTFYlv7MqRkBOu3lWgK0Q+4mcQQnff8EgGXJiXV12xxjL7mUynksOSNG22pzfLeIv uFxN88gArk2x60wIQJa5q+bTQM3dowumFN3y1HbW0xNV+23eh2qNL/0ulDaSBuSoooYU p8/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id i62-20020a638741000000b00578b26be643si3031715pge.606.2023.09.20.03.24.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 03:24:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id A73D4802827A; Wed, 20 Sep 2023 03:05:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234128AbjITKEx (ORCPT + 99 others); Wed, 20 Sep 2023 06:04:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234114AbjITKEk (ORCPT ); Wed, 20 Sep 2023 06:04:40 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A650A3 for ; Wed, 20 Sep 2023 03:04:33 -0700 (PDT) X-QQ-mid: bizesmtp76t1695204251taao2372 Received: from [10.4.6.71] ( [221.226.144.218]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 20 Sep 2023 18:04:10 +0800 (CST) X-QQ-SSF: 00200000000000B0B000000A0000000 X-QQ-FEAT: IV30oiqrgAb5rna1TIEV7YfRW072k5eKxAQ5LfodYttb50A7vd2R+5p1I1QL1 laK8zIgLCa1QBVxGwsSeVP+5VLUtRrYmsY7fkrLmPFb6782LLuRNqfN7Qt+bY2ujIMut0HC BbE+EyBB+E/toQsROAWBx8NpBFyspfc7ndKuq7pOsFXa5JtnWqkP0hw6ZQm3OxpB2ki6Yrc SIpl+l5rSdDaWiSJn6PzpZtYagyK+7kWxUiz7keJ4frDvRtYMfx5cJfagGgh0UkajE/5wYH wnMdqfNLQsG8FkoeCOTlcGpgIEJt082cNpIa+3MhnaDw5gxc+6nX8A+uWCNOHAUMm0lveTf AOPeR6/fQymbQ/ybHWWlpUjS9gW0w== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 4374422987798744598 Message-ID: <114145FFA8546AF1+24aac21b-3748-3d50-4154-a25ab59be1be@tinylab.org> Date: Wed, 20 Sep 2023 18:04:10 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH -fixes] riscv: Remove duplicate objcopy flag To: Palmer Dabbelt Cc: Paul Walmsley , aou@eecs.berkeley.edu, anup@brainfault.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org References: From: Song Shuai In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz4a-0 X-Spam-Status: No, score=-0.6 required=5.0 tests=FORGED_MUA_MOZILLA, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 20 Sep 2023 03:05:02 -0700 (PDT) 在 2023/9/20 17:52, Palmer Dabbelt 写道: > On Thu, 14 Sep 2023 02:13:34 PDT (-0700), songshuaishuai@tinylab.org wrote: >> There are two duplicate `-O binary` flags when objcopying from vmlinux >> to Image/xipImage. >> >> RISC-V set `-O binary` flag in both OBJCOPYFLAGS in the top-level riscv >> Makefile and OBJCOPYFLAGS_* in the boot/Makefile, and the objcopy cmd >> in Kbuild would join them together. >> >> The `-O binary` flag is only needed for objcopying Image, so remove the >> OBJCOPYFLAGS in the top-level riscv Makefile. >> >> Fixes: c0fbcd991860 ("RISC-V: Build flat and compressed kernel images") >> Signed-off-by: Song Shuai >> --- >>  arch/riscv/Makefile | 1 - >>  1 file changed, 1 deletion(-) >> >> diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile >> index 1329e060c548..b43a6bb7e4dc 100644 >> --- a/arch/riscv/Makefile >> +++ b/arch/riscv/Makefile >> @@ -6,7 +6,6 @@ >>  # for more details. >>  # >> >> -OBJCOPYFLAGS    := -O binary >>  LDFLAGS_vmlinux := -z norelro >>  ifeq ($(CONFIG_RELOCATABLE),y) >>      LDFLAGS_vmlinux += -shared -Bsymbolic -z notext --emit-relocs > > Does this result in any incorrect behavior?  It looks fine to me, but if Nop, objcopy works as it's expected. You can put this patch on -next. > there's no regression I'll put in on -next instead of -fixes. > > Reviewed-by: Palmer Dabbelt > -- Thanks Song Shuai