Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3126908pxb; Fri, 12 Feb 2021 09:48:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtBxf2z2j9LbYo9MH+B8o2RQKeNslOXSbWMwAz2aus32C95c0snwLlVAg6V9BhAj1g388n X-Received: by 2002:a17:906:8507:: with SMTP id i7mr4140347ejx.175.1613152111207; Fri, 12 Feb 2021 09:48:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613152111; cv=none; d=google.com; s=arc-20160816; b=POXSwzMP9oljy5ru/0O/IlYQj6tcOtGlXjtdZnzWkhf7Q6MbxF1yvG/1WOJq7pUJQw jMwTbc3cLXQWp/ao09M8pY/uQQSNfdfQNw4N7SaJEbEaDuKsAs+pjQEwu3lJ/WMv4LUT 3orD0UMjyIK8dQkAu7YnkBR4XAQ9F2fd6RnLTdPxiPG6HqaYg+xR8U/PNWNYfUgYDAQI p4cpxKkpcLqyJXjWDNrERkVkexk8jF4RBX5gZu1wWmbie+7r2PL0X3vnJ36kq1eO3639 bz8pyn0Hv5jogj/gCLcNp19ef5ALoN2CPN+mcMlozkPm6M1jj4LKkpHaRA6l/fSJaPUC Jerw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Nea4HwTrVPjBwGbYDvzk3d0Gn5jXdLEtcFcKA8scRsQ=; b=lu19OcYojpEr508rD79LYFJhS1KFkAQ+aTXJwpZ1eskuhVWATbJ8J4MhEHVLhpOduJ C/JMKWbmFo3ma9qhqQ/mQ2yUvK1JqCxFQDxzwXYmg2CNc9oAmT5SVBR1T0bki86qj8bR ESq4RTxl2Je+GOBfIPkSr4l3AjqqRfXwFG9Qst4ZpKGpWSkkpZLNCYh4kw1DH2yZrnEa PjU7wVEHPW3JCtiez/kEeW/QYerqLakuud3UBTK5yJaa/d2y73lQwel8CIlDzQEEmQSt LU9GM7WgZuTIFYrSMKGDem2BUMAGuOntvDsBdChJQQer5QfDpox8jp5SZiuDTd5wI5eM tJHQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y18si6941634edw.35.2021.02.12.09.48.07; Fri, 12 Feb 2021 09:48:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231816AbhBLRqi (ORCPT + 99 others); Fri, 12 Feb 2021 12:46:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:48760 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231474AbhBLRqb (ORCPT ); Fri, 12 Feb 2021 12:46:31 -0500 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2D31664E89; Fri, 12 Feb 2021 17:45:49 +0000 (UTC) Date: Fri, 12 Feb 2021 12:45:47 -0500 From: Steven Rostedt To: Josh Poimboeuf Cc: Greg Kroah-Hartman , Nick Desaulniers , Xi Ruoyao , "# 3.4.x" , Arnd Bergmann , "Peter Zijlstra (Intel)" , Miroslav Benes , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , LKML , linux-tip-commits@vger.kernel.org Subject: Re: [tip: objtool/urgent] objtool: Fix seg fault with Clang non-section symbols Message-ID: <20210212124547.1dcf067e@gandalf.local.home> In-Reply-To: <20210212170750.y7xtitigfqzpchqd@treble> References: <160812658044.3364.4188208281079332844.tip-bot2@tip-bot2> <20210212170750.y7xtitigfqzpchqd@treble> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 12 Feb 2021 11:07:50 -0600 Josh Poimboeuf wrote: > > Any ideas are appreciated. > > [ Adding Steve Rostedt ] > > This error message comes from recordmcount. It probably can't handle > the missing STT_SECTION symbols which are getting stripped by the new > binutils. (Objtool also had trouble with that.) > > No idea why you only see this on 4.4 though. > Just taking a quick look, but would something like this work? I created this against v4.4.257. -- Steve diff --git a/scripts/recordmcount.h b/scripts/recordmcount.h index 04151ede8043..698404f092d0 100644 --- a/scripts/recordmcount.h +++ b/scripts/recordmcount.h @@ -437,6 +437,8 @@ static unsigned find_secsym_ndx(unsigned const txtndx, if (w2(ehdr->e_machine) == EM_ARM && ELF_ST_TYPE(symp->st_info) == STT_FUNC) continue; + if (ELF_ST_TYPE(symp->st_info) == STT_SECTION) + continue; *recvalp = _w(symp->st_value); return symp - sym0;