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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E760C433DB for ; Mon, 15 Feb 2021 17:17:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 25A6464DEC for ; Mon, 15 Feb 2021 17:17:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231596AbhBORRB (ORCPT ); Mon, 15 Feb 2021 12:17:01 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:59141 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231180AbhBOP7s (ORCPT ); Mon, 15 Feb 2021 10:59:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1613404698; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=c6jv3nP+7Q06U4+toIFOfwOxFo1g4xAmXkGnBLIkfoE=; b=a5UjVgdGpinU5lo41acwy4bdNya0qQUWijK3uAk6g7tucWTO+v/bcpibnpRfJN4URLrdKI I0Kyvo19wTrlQtrtyh17CD2U/kpYLAe3kHUrzDeLi0GwkFsBVs5wMa+HKLUmYvCmQXS29d /8uXq+SZHQWIdBYzh3rVQrvfRTH1wls= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-518-zltMbELtNOuUs49q07VJ3g-1; Mon, 15 Feb 2021 10:58:14 -0500 X-MC-Unique: zltMbELtNOuUs49q07VJ3g-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7179B107ACC7; Mon, 15 Feb 2021 15:58:10 +0000 (UTC) Received: from treble (ovpn-120-169.rdu2.redhat.com [10.10.120.169]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6E02919CAB; Mon, 15 Feb 2021 15:58:08 +0000 (UTC) Date: Mon, 15 Feb 2021 09:58:06 -0600 From: Josh Poimboeuf To: Steven Rostedt 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: <20210215155806.bjcouvmkapj4pa4y@treble> References: <20210212170750.y7xtitigfqzpchqd@treble> <20210212124547.1dcf067e@gandalf.local.home> <20210213091304.2dd51e5f@oasis.local.home> <20210213155203.lehuegwc3h42nebs@treble> <20210214155147.3owdimqv2lyhu6by@treble> <20210215095307.6f5fb12f@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210215095307.6f5fb12f@gandalf.local.home> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 15, 2021 at 09:53:07AM -0500, Steven Rostedt wrote: > On Sun, 14 Feb 2021 09:51:47 -0600 > Josh Poimboeuf wrote: > > > Steve, looks like recordmcount avoids referencing weak symbols directly > > by their function symbol. Maybe it can just skip weak symbols which > > don't have a section symbol, since this seems like a rare scenario. > > When does the .text.unlikely section disappear? During the creation of the > object, or later in the linker stage? The section is there, but the symbol associated with the section (".text.unlikely" symbol) isn't generated by the assembler. -- Josh