Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp675388ybm; Thu, 28 May 2020 12:18:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjU1ccUHmrsmtkfGjhLCqAPQNjWbxiImkfnpDEH7/9m+ZmY9F8k2z6YOOzfy0j31metTFY X-Received: by 2002:a17:906:2ec6:: with SMTP id s6mr4845656eji.532.1590693494950; Thu, 28 May 2020 12:18:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590693494; cv=none; d=google.com; s=arc-20160816; b=Bcgdq/iYDFBbvYaQREBPd7yyEIbHrUIbKSxXxgbKua6NNau0mVhBI4LX/Yzx2SmIkw V5qgF0558s8I53omXavuqMkszVZOnBgHbPeurceoByMIQsi9Q9avUhy0g/s8r1nNUPxG trr9CWo8F38RPyyXJhtSvIIIK2TWthasteBarsAKBf1WWwPT7U1gl6OHr/iKqVqGk3yK IMT0bwpGqTfUY4vo/3Zq8wcxfkVR8TyYyqOaCf7Ho83AZtGsy9yZZk0fxOi+W+f+iXlB 9ek7qmMVooUT26y3fJijwwBsnQlBB+pLpcCoearvBA9Q/OFUs454/0zq0YMq9ZlL4nPH gRzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date; bh=87oie2Tjfz7bbaiOB0KAtkaKjchTfFtQeT6FKO13oTA=; b=Vgsro5+9iWFLiLUX7/bPBuT2fnUecIOTdE57l8aR8c0FXOzOdDDAMvbHu4BcN2rVZx kmcUq7/Bp8JQ31ZBZWJ7NZyX+IdaiU1PWIG7yjqfdMC5BzI+oWVhigUzlkXQmcDeev5l FzVcC/UdJRrR0nmgNpViWVCEpxcTfxMYPf03Utrj5k81p7/phwT+9n6UwY03YHPKOOMx eiYxGTaEHIQgqvByf/5p/I9RCejrsqdR5quvYmLfux4lz/Mf4n/7/2lno5TwkI1DCLO8 a8l5IVihePq2Umkfev5w1uI5XeOWzY1MBKsGLoYtx9ld+v2cbY371cJKVW13R4WVPENJ MMEQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gr5si4280559ejb.509.2020.05.28.12.17.51; Thu, 28 May 2020 12:18:14 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406223AbgE1TPx (ORCPT + 99 others); Thu, 28 May 2020 15:15:53 -0400 Received: from ex13-edg-ou-002.vmware.com ([208.91.0.190]:20716 "EHLO EX13-EDG-OU-002.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406126AbgE1TPv (ORCPT ); Thu, 28 May 2020 15:15:51 -0400 Received: from sc9-mailhost3.vmware.com (10.113.161.73) by EX13-EDG-OU-002.vmware.com (10.113.208.156) with Microsoft SMTP Server id 15.0.1156.6; Thu, 28 May 2020 12:15:47 -0700 Received: from localhost (unknown [10.200.192.41]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 2E749404FD; Thu, 28 May 2020 12:15:51 -0700 (PDT) Date: Thu, 28 May 2020 12:15:50 -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: <20200528191550.GY9040@rlwimi.vmware.com> Mail-Followup-To: Matt Helsley , Josh Poimboeuf , linux-kernel@vger.kernel.org, Peter Zijlstra , Steven Rostedt References: <20200528140916.6crguzfpehf6lext@treble> <20200528160247.GW9040@rlwimi.vmware.com> <20200528170010.xe46x3tvz4npvovj@treble> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20200528170010.xe46x3tvz4npvovj@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 12:00:10PM -0500, Josh Poimboeuf wrote: > On Thu, May 28, 2020 at 09:02:47AM -0700, Matt Helsley wrote: > > 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. > > I just realized somebody already submitted an almost identical patch: > > https://lkml.kernel.org/r/20200421182501.149101-1-samitolvanen@google.com > > Which I'll be merging soon... so you can just drop this one. OK, I'll drop this patch. Cheers, -Matt