Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4675235iog; Wed, 22 Jun 2022 03:45:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sHEzAKF/FnbBVGwPATdVwW3wMk9IikHCDjwCuBEUsEX+5G2341e/haVgt2zNNeAoY4VQp2 X-Received: by 2002:a17:902:6a88:b0:16a:901:3c7c with SMTP id n8-20020a1709026a8800b0016a09013c7cmr25835431plk.100.1655894706464; Wed, 22 Jun 2022 03:45:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655894706; cv=none; d=google.com; s=arc-20160816; b=XuHFFqvSLyDWVmCFpesL1Z5najw2ibq7UQUOtivYbLaYn0J3EoAyGgAaozBpCePeL5 anSq9t90QMNUiyHSg68o5eVxSiFn+fUQ6B3mOqRKzrpVP5kbsND19BQRTkvrD4wE1Rb9 pPDdYnhL9oQMyoTS1/H65VHmiuq9rlkTjDG6g42Vr0c8TssqiH4vvneA4AuJapww/rcK ULGx3xkzi/1ePKFXyD6/mZ7xR+JcGxxQuXHuT20NY8uhyFHfP/lik426B8VVE/ZziPmZ 1O5RcDsX1RaDORrTIt9BZei/paF+i8uGXhTdE1wvjgM4F8uXqVCWO79Yij2ZklLU6EKa L2NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=ywcdPo0ly3VYDN6BtXjTl0UgSxgKGjuyYwqmrrq1pNc=; b=lYZdboiGAYPwH6BAwzpPvARvBE/crkI/t+QKdWuNeFleXI7Vy91s4Kn/VXLDcCvdIX hpjq2U3LppbhRZ2MPNtLp07cFZ0e73PN+00AwWfHwGWLYTxWV0h6dzq/bWX8LUq2H+Xz avr8Y1ivkIMBmSHeYelZeDQZzKP4KAWlHRvJLrj40AZBzrgZXL+sCGBoeLsb520PgbuG 98R8ucg6x6wBfDbAEiFqgIrflVKVniKgZEY8wG7Lb37MEeQpDiTSVsYBGzl8DssaeJjt dTORNjsJAd3+1NKqJ319dy8/cKC8a+t5fA7XJlndlVx7KiCrPQXH/n2KiGc19vUnQOx8 6CVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j16-20020a170902da9000b00161720e6a48si1461134plx.308.2022.06.22.03.44.54; Wed, 22 Jun 2022 03:45:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350021AbiFVKQP (ORCPT + 99 others); Wed, 22 Jun 2022 06:16:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347800AbiFVKQG (ORCPT ); Wed, 22 Jun 2022 06:16:06 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A27D3B28F; Wed, 22 Jun 2022 03:15:58 -0700 (PDT) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4LSfNs3YmMzhXcb; Wed, 22 Jun 2022 18:13:49 +0800 (CST) Received: from dggpemm500013.china.huawei.com (7.185.36.172) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 22 Jun 2022 18:15:56 +0800 Received: from ubuntu1804.huawei.com (10.67.175.36) by dggpemm500013.china.huawei.com (7.185.36.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 22 Jun 2022 18:15:56 +0800 From: Chen Zhongjin To: , , , , , CC: , , , , , Subject: [PATCH v2 4/5] objtool: Specify host-arch for making LIBSUBCMD Date: Wed, 22 Jun 2022 18:13:43 +0800 Message-ID: <20220622101344.38002-5-chenzhongjin@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220622101344.38002-1-chenzhongjin@huawei.com> References: <20220622101344.38002-1-chenzhongjin@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.175.36] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500013.china.huawei.com (7.185.36.172) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When singly cross-compiling objtool, LIBSUBCMD MAKE uses target-arch and failed to LD with other object files. Explicitly specify host-arch for LIBSUBCMD so it can be correctly cross-compiled. Signed-off-by: Chen Zhongjin --- tools/objtool/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile index e66d717c245d..2b97720ab608 100644 --- a/tools/objtool/Makefile +++ b/tools/objtool/Makefile @@ -58,7 +58,7 @@ $(OBJTOOL): $(LIBSUBCMD) $(OBJTOOL_IN) $(LIBSUBCMD): fixdep FORCE - $(Q)$(MAKE) -C $(SUBCMD_SRCDIR) OUTPUT=$(LIBSUBCMD_OUTPUT) + $(Q)$(MAKE) -C $(SUBCMD_SRCDIR) OUTPUT=$(LIBSUBCMD_OUTPUT) AR=$(AR) CC=$(CC) LD=$(LD) clean: $(call QUIET_CLEAN, objtool) $(RM) $(OBJTOOL) -- 2.17.1