Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp858623pxb; Tue, 9 Feb 2021 14:42:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyaguiK9V5JQKhNc0zMg4C6xfn/EGI1MAMlNAMHVkFGddmCyoP3bfi5SSo4fsIWYXhDtQYs X-Received: by 2002:a05:6402:4312:: with SMTP id m18mr326725edc.99.1612910538666; Tue, 09 Feb 2021 14:42:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612910538; cv=none; d=google.com; s=arc-20160816; b=zEelJjJJL+JCpveVNEeJDuhuX2kk4r0QRMwxtiR+1J7Drrzj1AsiIyTth4+Ij+UiUQ 67PK7i6K7w6Hw+SzUvwcLzkEURb6GtM4SnopHXTbBisQVoKYEoibXG18eTFXKrZioPxM SpZnhaHKYnpc+axBND9Ug89TQ0T9PjHqR5H6nx2/mz9ou1eGuTTTM0Nd1/dURc4lbRb+ /NrmbZKKEcpjeTtpmG+60ShbyD4/++chDk5lWKA3obxU2Xwq/myJefMVlIbY66ktRXa9 MI50yyHyFIkIZRfTsmo2zzsWOeKX1uEnRRVymCLp6sWPy2772Jft9+QoKZ3IxMxpmDeR vrOg== 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=Qbo94A/VHAOz6sshU09gSXtZnVwmHqpgyW0hG7gxWVw=; b=ivMEF1c7AiopF+7QmnnEtgTOMEnEkgOfKK3lXik4PN1LRED6vcAPIBFjuEyp46QLq8 OZAI8PmcbkO0rm+ACBDKFKDAnWIytDZRo7GfZdkQv72lqU08FfcXY3vsxyyAI8F6u2OD 7mssozB1SoEKa7vPqXnldr32lvux2H3fdhzhercPzcaNJf+pgumzAkpqqkKLFwqHEcwn bUmiSKmDxLrZiH2qLRoJnE+6SEamgqZU3A01Ye7pGB8EIPUPDCG+4LCdR9JWnxdvvsd2 Seru/j6yO9LnyUBi/xQoy738Sniv0v40AAKc3UloMBhqaT5qsRzjcm0UHjS7cMJG05rv +icg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hfgPQ8OE; 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 bx24si5607ejb.98.2021.02.09.14.41.55; Tue, 09 Feb 2021 14:42:18 -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=hfgPQ8OE; 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 S234600AbhBIWex (ORCPT + 99 others); Tue, 9 Feb 2021 17:34:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:55622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233556AbhBITmZ (ORCPT ); Tue, 9 Feb 2021 14:42:25 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8F6EB64EAA; Tue, 9 Feb 2021 19:10:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612897832; bh=iPKdwNyQUQe78NDbY01WUS5126jm07K18bv8SkZfo/E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hfgPQ8OEg0YOC9BEEGOR7nY6VyK+1sOrR/Ik8aLTQWfBBo5kFQ0Eg9fRZZ1xf4i5Y sCM9IQBo+/LuHt3DYpGMZUMxQjylcR4QT04CAUCmLOUxaFQ1vvYk/qB9M3Q5CfUDZx 7gY6hvBxcyZPUByRWHYBVzBxBRVBB1PtJvYTLQlU= Date: Tue, 9 Feb 2021 20:10:29 +0100 From: Greg Kroah-Hartman To: Pavel Machek Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Arnd Bergmann , Nathan Chancellor , Nick Desaulniers , Barret Rhoden , Andrew Morton , Linus Torvalds Subject: Re: [PATCH 4.4 22/38] elfcore: fix building with clang Message-ID: References: <20210208145805.279815326@linuxfoundation.org> <20210208145806.154119176@linuxfoundation.org> <20210209125252.GA23392@duo.ucw.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 09, 2021 at 02:01:37PM +0100, Greg Kroah-Hartman wrote: > On Tue, Feb 09, 2021 at 01:52:52PM +0100, Pavel Machek wrote: > > Hi! > > > > > From: Arnd Bergmann > > > > > > commit 6e7b64b9dd6d96537d816ea07ec26b7dedd397b9 upstream. > > > > > > kernel/elfcore.c only contains weak symbols, which triggers a bug with > > > clang in combination with recordmcount: > > > > > > Cannot find symbol for section 2: .text. > > > kernel/elfcore.o: failed > > > > > > Move the empty stubs into linux/elfcore.h as inline functions. As only > > > two architectures use these, just use the architecture specific Kconfig > > > symbols to key off the declaration. > > > > 4.4 has this: > > > > config BINFMT_ELF32 > > bool > > default y if MIPS32_O32 || MIPS32_N32 > > select ELFCORE > > > > in arch/mips. So I believe we'll see problems in that > > configuration...? > > Hm, did I miss a patch to backport? This is needed to keep 4.4 building > with newer versions of gcc. Well, close to building, I'm still haveing > local issues with 10.2.0 and the 4.4.y tree right now... Not a gcc issue, looks like a binutils issue on my side... And the builders seem to have worked ok. thanks, greg k-h