Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp280651pxb; Thu, 25 Feb 2021 02:16:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNOjwodPnMUq5KQ//kNYcrY+3wHdnKQPLkvgZEXNABrlM2abrfmu2ey1gzHMJyr3vbaSwN X-Received: by 2002:a17:906:2747:: with SMTP id a7mr2029452ejd.250.1614248180835; Thu, 25 Feb 2021 02:16:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614248180; cv=none; d=google.com; s=arc-20160816; b=JCx9LQqtnN9A85EI/QUCbO0Qi1DrUHrdi6KtIB1q5oxNkg1dEqnN90itTe+4BPNbnf OMk1gWwHOQJ4DeE4mNF++CU/DMoLgVRoNFt+QajVDZvSxVNPPu2B/16GaP2ZAu7bktW9 XvC6me9u2emfCKJN8V0tk9gRtITwWQKIILsZnszEAylXEhosqkFZ2bS5I4B7XDnx9DVy Kmsi8bINOn5jdOJgjuAUixRZTR5rj8EXZLbyYuniqha5+4tyts5An344XpN6IkgZdflr 9e8v9VJjt/2jMX2O17WaMzz5s6Qr2ylix64CCklMLOCW3p2lbQlWlSAFRnCE5jrQcFCh WeCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=di5kah3RUAn7DVGYiXn8T4VxFlh85/Q+ZER9Ol/7rqo=; b=vktoT6Ma+qEOfcQqYuxhMpx7wNd65GAc4SrNDCANbMtRwRb4CYGI4SzUI+DzdqqbOP QapPfxMICVb//T1rSZx9r5Fr3zfwsbF1fwpKOJu1oLtGANqUVC9HycJfKf5wPVpiCCW/ z305l3zOj/eSU5O7z7zAoxCdUeOCnJAnEcCp/yPDZdX606/Fpmda/2zvonZQqvrOBM+V TnBdcVC5zeTAsbep6gTnoisT9D8TUmZybc6ZEHPKpQrVWR0Co87o0KyUsQC3o/zfbFHl UsbgMnsCgWbt7Ce5i7EvOaDGlvY7/O7u68Cx5gGChI+ZOTslUm2SCVn/iPpD+Av4M8Xm Sozg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qLOZTeDA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w25si3482581ejy.70.2021.02.25.02.15.58; Thu, 25 Feb 2021 02:16:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qLOZTeDA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229466AbhBYKOq (ORCPT + 99 others); Thu, 25 Feb 2021 05:14:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:35102 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233745AbhBYJ72 (ORCPT ); Thu, 25 Feb 2021 04:59:28 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 85B5C64F1D; Thu, 25 Feb 2021 09:55:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614246912; bh=BjnqRSgTghxHTC/Y2mXgCFEH6teFqCdVhUhL3nlqKnA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qLOZTeDAt51ICc7rIoN1lr8/KF8fzuPzAz63lmTXKh6m+hXZ8hglKzmVax1XIvzlm KVEF2TeT7sxUeJoZ0XSeXuIjUc8+zHSYYEseUIjTauIdJRYL+kHVckd9Vgjdw2Ai23 KLyPmyrF28ptsUqVHpM4DefeYK0l3lW/ZciGnUws= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rong Chen , kernel test robot , Yoshinori Sato , Rich Felker , Andrew Morton , Linus Torvalds , Sasha Levin Subject: [PATCH 5.10 23/23] scripts/recordmcount.pl: support big endian for ARCH sh Date: Thu, 25 Feb 2021 10:53:54 +0100 Message-Id: <20210225092517.625440490@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210225092516.531932232@linuxfoundation.org> References: <20210225092516.531932232@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rong Chen [ Upstream commit 93ca696376dd3d44b9e5eae835ffbc84772023ec ] The kernel test robot reported the following issue: CC [M] drivers/soc/litex/litex_soc_ctrl.o sh4-linux-objcopy: Unable to change endianness of input file(s) sh4-linux-ld: cannot find drivers/soc/litex/.tmp_gl_litex_soc_ctrl.o: No such file or directory sh4-linux-objcopy: 'drivers/soc/litex/.tmp_mx_litex_soc_ctrl.o': No such file The problem is that the format of input file is elf32-shbig-linux, but sh4-linux-objcopy wants to output a file which format is elf32-sh-linux: $ sh4-linux-objdump -d drivers/soc/litex/litex_soc_ctrl.o | grep format drivers/soc/litex/litex_soc_ctrl.o: file format elf32-shbig-linux Link: https://lkml.kernel.org/r/20210210150435.2171567-1-rong.a.chen@intel.com Link: https://lore.kernel.org/linux-mm/202101261118.GbbYSlHu-lkp@intel.com Signed-off-by: Rong Chen Reported-by: kernel test robot Cc: Yoshinori Sato Cc: Rich Felker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- scripts/recordmcount.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl index 3f77a5d695c13..0bafed857e171 100755 --- a/scripts/recordmcount.pl +++ b/scripts/recordmcount.pl @@ -268,7 +268,11 @@ if ($arch eq "x86_64") { # force flags for this arch $ld .= " -m shlelf_linux"; - $objcopy .= " -O elf32-sh-linux"; + if ($endian eq "big") { + $objcopy .= " -O elf32-shbig-linux"; + } else { + $objcopy .= " -O elf32-sh-linux"; + } } elsif ($arch eq "powerpc") { my $ldemulation; -- 2.27.0