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=-0.8 required=3.0 tests=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 91747C433E0 for ; Thu, 28 May 2020 16:02:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 73FAF2071A for ; Thu, 28 May 2020 16:02:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404816AbgE1QCt (ORCPT ); Thu, 28 May 2020 12:02:49 -0400 Received: from ex13-edg-ou-002.vmware.com ([208.91.0.190]:32307 "EHLO EX13-EDG-OU-002.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404631AbgE1QCs (ORCPT ); Thu, 28 May 2020 12:02:48 -0400 Received: from sc9-mailhost2.vmware.com (10.113.161.72) by EX13-EDG-OU-002.vmware.com (10.113.208.156) with Microsoft SMTP Server id 15.0.1156.6; Thu, 28 May 2020 09:02:43 -0700 Received: from localhost (unknown [10.200.192.41]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 69495B2092; Thu, 28 May 2020 12:02:47 -0400 (EDT) Date: Thu, 28 May 2020 09:02:47 -0700 From: Matt Helsley To: Josh Poimboeuf CC: , Peter Zijlstra , Steven Rostedt Subject: Re: [RFC][PATCH 2/3] objtool: Find relocation base section using sh_info Message-ID: <20200528160247.GW9040@rlwimi.vmware.com> Mail-Followup-To: Matt Helsley , Josh Poimboeuf , linux-kernel@vger.kernel.org, Peter Zijlstra , Steven Rostedt References: <20200528140916.6crguzfpehf6lext@treble> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20200528140916.6crguzfpehf6lext@treble> Received-SPF: None (EX13-EDG-OU-002.vmware.com: mhelsley@vmware.com does not designate permitted sender hosts) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 28, 2020 at 09:09:16AM -0500, Josh Poimboeuf wrote: > On Wed, May 27, 2020 at 09:42:32AM -0700, Matt Helsley wrote: > > Currently objtool uses a naming heuristic to find the "base" > > section to apply the relocation(s) to. The standard defines > > the SHF_INFO_LINK flag (SHF => in the section header flags) > > which indicates when the section header's sh_info field can > > be used to find the necessary section. > > > > Warns when the heuristic is used as a fallback and changes > > the name heuristic calculation to handle rela (explicit > > addend) and now rel (implicit addend) relocations. > > Does this fallback case actually happen? Not that I could see. I was thinking about taking it out but I haven't tried this set with clang or other toolchains. So I was wondering if you think holding off before removing it would be wise or if you'd rather just remove it. Cheers, -Matt Helsley