Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2041475pxb; Thu, 11 Feb 2021 02:49:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdwlrvhWmT7CspkTGLPbheLN9nr65mZbFHHpObIbNkzXLeodjX5X6TcNM7DgeGr5Ml6aGk X-Received: by 2002:a17:906:da0b:: with SMTP id fi11mr8016523ejb.392.1613040556498; Thu, 11 Feb 2021 02:49:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613040556; cv=none; d=google.com; s=arc-20160816; b=G1dbfQO0jzAB1BGRIreLcEkj0p3GhrUS9MKfRMO7NDLGCppfjLN/DnkpuvO7QZfoTW 4b1fbWbX6XGRxg4LWkbyY3saUN52b/Kz3KVwdwhSpu9M+zOtQjXx1dH+m8jB7p7DNef/ DwA8NEmhF/5BPq4u9/8VPzJJmDtIHskAhfPGQvgsbk1A6BlzClUh0KLlvTqJCffvAng4 NpUt/H+ogt0/uhLSTnlent4+y7bcMNPLcbpeOBYzG70z0tNJTiiIx6veqT1awOP11CzW 91jYBxH0BouUCkJxc9W7y+L/xnuZMUQi4qPRIPX4AnSgfqQsk5ZYedTpDN4zI4VqZfzR E4eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=duyGqJEV+4dZmCeJ6iiCVBZTSzbWkmck+FghI9Bc9yU=; b=xQ6ESW5uCiwsmsf33XVGz4x1ZNRnJ1eyTTrQYYI2Ts3Ub/4bTtLGloYQG3DBxh3wsO aMBkWn7co4xwRm32W8kaXDjCe1en/0Yp6vAvll/7DQxqWN5T69q/RG6ahDhmn5ipFMTO 1R9OjNlPbx2aeuUC8gNXebPnZXpav9Y6I+PMqAI6qLsm2TZxne+MrxruQ/mZ53L8kgYe +Kh0s4J1E0hrzB3ZQXtt/0FzxGnp3ac6o70+QbLTtaalIjGgmDXeCXyAGolgEG2fwf73 h4y1ctlRlavlwvpODc7lmwjAXtMzquAdQaCFvtsVW80SAy0hwC9vD3st8ukDBzPXxLJn NXtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uTR27TXA; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s20si3853956eji.61.2021.02.11.02.48.53; Thu, 11 Feb 2021 02:49:16 -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=@kernel.org header.s=k20201202 header.b=uTR27TXA; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230362AbhBKKsI (ORCPT + 99 others); Thu, 11 Feb 2021 05:48:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:54320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230433AbhBKKoW (ORCPT ); Thu, 11 Feb 2021 05:44:22 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 84ADA64E13; Thu, 11 Feb 2021 10:43:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613040221; bh=MhyCNPilNp1n0/hhzu9n9mbGtPkE6nkufd4sqjrol+4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uTR27TXA4/X1UAKf1pTli7gCRp6AgTTlhM4bABBjTpn/W67kGcS5vh/9+Yx/wilDd 0JoOSrePpT70xJ9mGkLqNhGpj3TDqpc3lCb70v8zKJTkADhLkg8Etf9CeMjLMZARjU YwHC0r/JJT5hRyfH5ArPflcQe40DOc8lwliwxd2P1jsy2Szwu8AYpa1ktliE18fpBf dvwkWeA8TCrf7L0UtvNec2h5bEAHkhfEWT1smXu6y3hU+NuC8YMXK638lixgEktDSQ NHEg5NQDNT4yzSlFma8UQMhPMc8JfMhEuuyFnLfjA7XFVY/+nYnUO7IIE6nQv+UYXs TyZ2OBP60htvg== Date: Thu, 11 Feb 2021 11:43:35 +0100 From: Jessica Yu To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Stephen Rothwell , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kbuild: fix CONFIG_TRIM_UNUSED_KSYMS build for ppc64 Message-ID: References: <20210211061416.3747231-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210211061416.3747231-1-masahiroy@kernel.org> X-OS: Linux gunter 5.10.12-1-default x86_64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +++ Masahiro Yamada [11/02/21 15:14 +0900]: >Stephen Rothwell reported a build error on ppc64 when >CONFIG_TRIM_UNUSED_KSYMS is enabled. > >Jessica Yu pointed out the cause of the error with the reference to the >ppc64 elf ABI: > "Symbol names with a dot (.) prefix are reserved for holding entry > point addresses. The value of a symbol named ".FN", if it exists, > is the entry point of the function "FN". > >As it turned out, CONFIG_TRIM_UNUSED_KSYMS has never worked for ppc64, >which has been unnoticed until recently because this option depends on >!UNUSED_SYMBOLS hence is disabled by all{mod,yes}config. (Then, it was >uncovered by another patch removing UNUSED_SYMBOLS.) > >Removing the dot prefix in scripts/gen_autoksyms.sh fixes the issue. >Please note it must be done before 'sort -u', because modules have >both ._mcount and _mcount undefined when CONFIG_FUNCTION_TRACER=y. > >Link: https://lore.kernel.org/lkml/20210209210843.3af66662@canb.auug.org.au/ >Reported-by: Stephen Rothwell >Signed-off-by: Masahiro Yamada Thanks a lot for the quick fix. This fixes the ppc64 build issue on my end: Tested-by: Jessica Yu Do you plan to take this through the kbuild tree? If so, please let me know when you've applied it, then I can undo the temporary workaround I currently have in modules-next. Thank you! Jessica