Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp458047ybm; Thu, 28 May 2020 07:11:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXJY5qvwphbI2mh6/NjCi/hEpAZ8fSA0xYSrc0R/TcTfjK7Ig2r8JUwXhLfuIuj3Bu/nc5 X-Received: by 2002:a17:906:c147:: with SMTP id dp7mr3106426ejc.307.1590675090007; Thu, 28 May 2020 07:11:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590675089; cv=none; d=google.com; s=arc-20160816; b=r9UtIEJSLv+Nv/DOhoGCH7JWriG4sOgM1h0huWDVZe0W1wnOJGsQSHEp6v22xGD8uu e0qMovv6fNpirUh9D5ZkgTEgOliQwHWAXXE0KBH6VTwvQF8eRtqFGmimc0KfGx3NBWTu NoD+MYK/bEx2HeFa+RljdSzmnQKN0bHYYIniv4w0U8L3NGA43KF6BgnVcXaBBOHNNqP4 RdnIG/J5KwbI4kAMd0V4MHwKRx/oLF+Z5xJVdJX87JL98gAC/llmwnlcskNBY6KSntBI l9s1PC5wQm9NySNqjzUimOgrdeOPlHLRSeGVjryvuisDE5g/DtI6gtE0xebnHIAUHMDZ NrGQ== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=490niSUEjnok3sQJrwjS9wHcDf3r9lU64VwDtM9/LEk=; b=aYxUQjfoGlkMzkrwXIZWdsjBSbNuBkpmqDW0j7y5MRri6UgjU7i6E6OCTCnFMucTtv 5DpaK3bUMRK5al52lqDKCYZ4PI3GWxRlwMNFmWaixmB8eqi++dA/Le/ASOyCxTwZvgoN 6IwJxC5YaVLziz+UFvdwVBUJSrbzDVo61jmz3bu4KEaWARpAgcVey+Q99EGVMHHG4lB7 vsxxtNR2sNYUDMBynb++x2JU7H6GNNGp9g0VaeHwZqICpxN5dpXbPaAiKO4vZ/6gec3D k/fQ3Nk1l1t0UQVbXFqS+cpwYiT91QmPv6PrGIfzqZqomsu8jRJ1+NcxGqkb670pMux0 Jdtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iQOLKMmg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qh23si3699420ejb.351.2020.05.28.07.11.06; Thu, 28 May 2020 07:11:29 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iQOLKMmg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390851AbgE1OJY (ORCPT + 99 others); Thu, 28 May 2020 10:09:24 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:57495 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390727AbgE1OJX (ORCPT ); Thu, 28 May 2020 10:09:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590674962; 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=490niSUEjnok3sQJrwjS9wHcDf3r9lU64VwDtM9/LEk=; b=iQOLKMmgqf0EZjKhzNO/LYEnOnBfLVRiVbZG7P210eH5Ge/g9FNIotWV2hyNeaQ2UC2ZUA JFvlhDitswAO5I+QSWF0bEDVF49gzCELKBSDyQSR9C7cKqehpf5mlx98xaiY2LdseICrLn CMihawqIpoQM+wpVeA+3GxQPh4Gssus= 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-451-8a54KkNtNLe4i6WPLICf7w-1; Thu, 28 May 2020 10:09:20 -0400 X-MC-Unique: 8a54KkNtNLe4i6WPLICf7w-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1D02181CBEF; Thu, 28 May 2020 14:09:19 +0000 (UTC) Received: from treble (ovpn-117-65.rdu2.redhat.com [10.10.117.65]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7D1315EE0E; Thu, 28 May 2020 14:09:18 +0000 (UTC) Date: Thu, 28 May 2020 09:09:16 -0500 From: Josh Poimboeuf To: Matt Helsley Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Steven Rostedt Subject: Re: [RFC][PATCH 2/3] objtool: Find relocation base section using sh_info Message-ID: <20200528140916.6crguzfpehf6lext@treble> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -- Josh