Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1086607iob; Thu, 28 Apr 2022 18:58:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6PFaBfpfYLE+vAr+9PtNxTlWySBs3KDNPeS46us0bIg76l54xZQPrNv90dyUbhXzagt9Z X-Received: by 2002:a17:90b:4b12:b0:1d2:8bda:ef7 with SMTP id lx18-20020a17090b4b1200b001d28bda0ef7mr1339823pjb.174.1651197508223; Thu, 28 Apr 2022 18:58:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651197508; cv=none; d=google.com; s=arc-20160816; b=MrDw7ubdVSpZ5GaSdwvToQJdfGeluhU0b+lnFd/kGFpb9nAX5vwKtyxM/QhfteflwH wgFUke8zHX0N0BaJXhbi+HoTEdirrS5ZSNAlao/EIGH2nikxItms/met1J5Z62P5ApPW 6CjGKQkSGLU0qD7Ad1A3RE5wwayICV6P2bRYwXrgsC3oFk6Rh1S7t1Ta6Uwz7vkFiAgk PS2BtjWxszoNoHPi4WlEa1pbS8pwO3wUu9qzCmr3q80bg3zO5EWj76z+KlZrD1NBZS1o ejopXd2xfOzpI6Gxly9ttu9V2qiEofO3e45ZtYw4Lftylh+Vo5a1BtkDspTOcjegzwBQ LTBg== 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=KElnpcjKr9zvF8H+Y/MN1bKGc0qti+5IoGKPM7gjZvw=; b=TXDZ6CdsfpljjDExk2HpxMgIp8fQICncSzKQOcNHAYBagQxbSFzbULczQkwnxNAxf4 2aGjz7YQ4TqZ8d4gfnNIZFWHpndlmVc9fUR8S2KZM/RfbGqiFGYmnr7me3dCJIhAZ+xB 6bMoVvh3T6lFSR+bzFHLqSTuJzcUTwklEFDFWv05OX8xfbRTuZcRfWe9fA8G4zsJJSiC c1b3qNXV96OSQ5QS0KLCawvEt/GIi4W71y0R8pWEkEx/fyiPq8nCG2Tyq53QNtBrLgFt rwhyt2qihZ5NTGjt1KhKdCnArxa6FiWAGNAcMFYAooIdlZd7trXEoHBQiuH9OV1HAUVo KhWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j8-20020a170902da8800b0015d3a9ee8b6si6702654plx.3.2022.04.28.18.58.11; Thu, 28 Apr 2022 18:58:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348136AbiD1OJv (ORCPT + 99 others); Thu, 28 Apr 2022 10:09:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348085AbiD1OJW (ORCPT ); Thu, 28 Apr 2022 10:09:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD9C629C89 for ; Thu, 28 Apr 2022 07:06:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 49AA961D90 for ; Thu, 28 Apr 2022 14:06:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9269C385A9; Thu, 28 Apr 2022 14:06:03 +0000 (UTC) Date: Thu, 28 Apr 2022 10:06:02 -0400 From: Steven Rostedt To: "Naveen N. Rao" Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, llvm@lists.linux.dev, Michael Ellerman , Nathan Chancellor , Nick Desaulniers Subject: Re: [PATCH 2/2] recordmcount: Handle sections with no non-weak symbols Message-ID: <20220428100602.7b215e52@gandalf.local.home> In-Reply-To: <1651129169.fpixr00hgx.naveen@linux.ibm.com> References: <1b9566f0e7185fb8fd8ef2535add7a081501ccc8.1651047542.git.naveen.n.rao@linux.vnet.ibm.com> <20220427095415.594e5120@gandalf.local.home> <1651129169.fpixr00hgx.naveen@linux.ibm.com> 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 X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 28 Apr 2022 13:15:22 +0530 "Naveen N. Rao" wrote: > Indeed, plain old -pg will be a problem. I'm not sure there is a generic > way to address this. I suppose architectures will have to validate the > mcount locations, something like this? Perhaps another solution is to make the mcount locations after the linking is done. The main downside to that is that it takes time to go over the entire vmlinux, and will slow down a compile that only modified a couple of files. -- Steve