Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3783701rdb; Thu, 14 Sep 2023 02:26:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGrPkTslvROJgVupi9x0sqF5AdJvu3TE8PmXT5KFyPDAAJRLvz47SwMbNCgZGK23bzze7fl X-Received: by 2002:a05:6a00:1c9e:b0:68f:b8ca:adf with SMTP id y30-20020a056a001c9e00b0068fb8ca0adfmr5168910pfw.0.1694683595588; Thu, 14 Sep 2023 02:26:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694683595; cv=none; d=google.com; s=arc-20160816; b=IO3fF9vyMMmj/IG9RfDCSBTdJzYEPmTuoZQmBfKn7Xq6c6DZT49rEG25V67AvEMTEX MMjZiCckl8c2dDWGLyarepJPvsDHs57PS8ckcAHFnZcTGb375DEemWN1jP/5TZU45rFU JMsJczBV+gkHW2ybsgTnTjKYv/CMTi79NZ9n+9ucu8paFlQxwPY9w5jjFWeTvBIh4gQN 76EO81IlBcWvV9N8rsZuAIKBrAsME8IuFwLMEOM996pWYCVdo09Ed5M7Rzg08RueU/M0 zldwi/l8MXdzeipIS/zb5gPO0DvkN5DJ1gVEWId98UO1NLrjlFJO7u1GqDkaTlJgKz5d g/0g== 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 :mime-version:message-id:date:subject:cc:to:from; bh=kqpRp1TJH00FVbuOlQ9IMLVi32tB/7BZZeyEwBjprDs=; fh=5HTM4Fc0Y+DC+zZ1ierMVXczLlWJNE4PQSjLRP3uLf4=; b=Hr7O0YtADQsz0BlhdyYNRK17CCrvEKGTfK6+KwdsaD3ZtfvePraEutfUNTEagqvMhb H8esgQlqH3C7ozUsyZTo0hnXVUefk/YbWfUL0l/Azf0/gWDHVk1VDwCsSK3QoTMBIxXN 7pz5+PUt/kFFM7rQe+Qk/7WgXAxP+6oFna0OllCIIUCqVQXEOQ/XmWzBMzGDzHBT7lLN 39q/AIqUkXFDgTKloUegXp/dvGJe8/AaJUUXWJE9byFDC86f3V1vPez+EM0jwQIvwa/H PwQzLzdozxQaTaPgu7JX8ak4mtzlFjzToO9ET7xJvplalTYITaLFtACU1+1ovS3uo6q/ uRCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id fb20-20020a056a002d9400b00686e01db946si1280471pfb.64.2023.09.14.02.26.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 02:26:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 69C648022860; Thu, 14 Sep 2023 02:14:25 -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 S236617AbjINJOQ (ORCPT + 99 others); Thu, 14 Sep 2023 05:14:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235913AbjINJOP (ORCPT ); Thu, 14 Sep 2023 05:14:15 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC163CC3 for ; Thu, 14 Sep 2023 02:14:10 -0700 (PDT) X-QQ-mid: bizesmtp73t1694682827tlz1i6o5 Received: from localhost.localdomain ( [221.226.144.218]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 14 Sep 2023 17:13:45 +0800 (CST) X-QQ-SSF: 01200000000000B0B000000A0000000 X-QQ-FEAT: CR3LFp2JE4nYED5orq4xNbGCHZt0equu6uLslwzQkn9bzwZLLtMcHQM+UJQS6 q8a4vVZNtlwe5E0SDTAN63nnOD5D9BnkKmoZ8jpiOl3Whuq2rjGJKTbLEMy1xGw8rr/PY5I wDzvFupyyeOXxuNVm28pTmnWbMw9I8alXmA6NVjbTGfJ6+Nzsyw9BwA3PTWeDL9/SYQfpaj 0x019CPO5/oJxYCG0axv0PAuz8L35JavaxK+QiOq1BjIhlHc3SgAnbPAbjZkhBRQ5V+o6sa 6nhsKHFu6PjdB7C5beR3tG3EtrwHfmJBgu0MBtb+yK5B5opyDqVZuQXbhBuTpiE61Pcfls5 nJ8y3X+G+TRbZIZamtU8keRUAHqsQeWfBr1q5a31krVw4H3+2E= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 10526122010686381623 From: Song Shuai To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, anup@brainfault.org Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Song Shuai Subject: [PATCH -fixes] riscv: Remove duplicate objcopy flag Date: Thu, 14 Sep 2023 17:13:34 +0800 Message-Id: <20230914091334.1458542-1-songshuaishuai@tinylab.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz4a-0 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]); Thu, 14 Sep 2023 02:14:25 -0700 (PDT) X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 -- 2.20.1