From patchwork Thu Sep 14 09:13:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Song Shuai X-Patchwork-Id: 139462 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp220308vqi; Thu, 14 Sep 2023 02:26:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGCV8Yz99QtnptnQXtTKk7BlIQ8URmqttv0VVOiNtGx51hnP4xF/K1xMhjlEv7douM8nsoC X-Received: by 2002:a05:6870:14d6:b0:1bb:724f:2bca with SMTP id l22-20020a05687014d600b001bb724f2bcamr5814489oab.1.1694683597254; Thu, 14 Sep 2023 02:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694683597; cv=none; d=google.com; s=arc-20160816; b=YwPSURtjqWLqBZWk9E8+Sw6e4ZPRLMRTCvRO01rxJGpbpS9UDYuNr3ES3p6OQrUFR6 sUEPy/spdSXyfM3P1ajNWVN9NHvt/nm6r9u4jrxdlow7Rh8zPTQ/rvAu/dKQ4xLMnH1D VvjeU2mScGzVl2/GF2ZwM5X9EsR/3z+K1ECS4GnKLXyLlEBR1IG6US5oUy6mnJzvjaz6 OC2wYN3GBriHROivnieJ/xy0WxeYtIEZxTZ/6C6aXyA6knB64W4479OowZ17vx43pNdF jEen0Bn2AwTEw4I1zHKC1WISMNHWOwgliOIXRWtTCZPGa4cA5z/ndieTNOqXl+/UXWOL rjFQ== 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 Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id b66-20020a636745000000b005774635c69dsi1152105pgc.66.2023.09.14.02.26.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 02:26:37 -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 3E8448120459; Thu, 14 Sep 2023 02:14:40 -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 S236657AbjINJOR (ORCPT + 35 others); Thu, 14 Sep 2023 05:14:17 -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 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:40 -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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777004547683049351 X-GMAIL-MSGID: 1777004547683049351 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 Reviewed-by: Palmer Dabbelt --- 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