From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 627DAC77B75 for ; Fri, 12 May 2023 10:11:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239935AbjELKLf (ORCPT ); Fri, 12 May 2023 06:11:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240013AbjELKLe (ORCPT ); Fri, 12 May 2023 06:11:34 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F356106D3; Fri, 12 May 2023 03:10:59 -0700 (PDT) Received: from dggpemm500016.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4QHktL6xytz18LRW; Fri, 12 May 2023 18:06:02 +0800 (CST) Received: from [10.67.108.26] (10.67.108.26) by dggpemm500016.china.huawei.com (7.185.36.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 12 May 2023 18:10:15 +0800 Message-ID: Date: Fri, 12 May 2023 18:10:15 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 To: CC: , , , , , , , , , , , , , , , References: <20221226184537.744960-1-masahiroy@kernel.org> Subject: Re: [PATCH v2] arch: fix broken BuildID for arm64 and riscv Content-Language: en-US From: "chenjiahao (C)" In-Reply-To: <20221226184537.744960-1-masahiroy@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.108.26] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500016.china.huawei.com (7.185.36.25) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-arch@vger.kernel.org Hi, It seems this patch introduces a compile error on powerpc 85xx platform with CONFIG_RELOCATABLE enabled. To reproduce the problem, I compiled the mainline linux kernel with patch 99cb0d917ffa ("arch: fix broken BuildID for arm64 and riscv"), using configure file: arch/powerpc/configs/85xx-32bit.config and enabled CONFIG_RELOCATABLE manually. Then the compile log with Segmentation fault appeared as below:   ...   AR      fs/proc/built-in.a   AR      fs/built-in.a   AR      built-in.a   AR      vmlinux.a   LD      vmlinux.o   OBJCOPY modules.builtin.modinfo   GEN     modules.builtin   MODPOST vmlinux.symvers   UPD     include/generated/utsversion.h   CC      init/version-timestamp.o   LD      .tmp_vmlinux.kallsyms1 Segmentation fault (core dumped) scripts/Makefile.vmlinux:34: recipe for target 'vmlinux' failed make[1]: *** [vmlinux] Error 139 Makefile:1252: recipe for target 'vmlinux' failed make: *** [vmlinux] Error 2 Could anyone reproduce above error, or have I missed anything else? Thanks, Jiahao