Received: by 2002:a17:90a:bc8d:0:0:0:0 with SMTP id x13csp2414684pjr; Tue, 19 May 2020 14:48:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQbU6abRzx8q80Gv78Yi31G0H4OowmRMz2rrmJSanlEqQRFUPUaIHzmobA2qU3M62Ooue8 X-Received: by 2002:a17:906:584e:: with SMTP id h14mr1173611ejs.257.1589924925844; Tue, 19 May 2020 14:48:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589924925; cv=none; d=google.com; s=arc-20160816; b=0KNTGZMaiFQOCMsXS8Ucvz+Z3uNki8hjpFznqWkwptyBqnP4CUT+AOgH3Jrp4Kkf+T NkZ6yXYbqvB9YpmL2vE3UcqJewn2a1SgePgXR4tgK4LyzMBaALas2sJqABBgGa87+NzR 3r1apKIemuLmXyDKCrinChOVACLUFz5qBllLtPx5zYeyJ2favGU0qIeQcq54MizRqcGp r6taXJezKGao9Wr0+WjDt4aRbwcJ2NDRBXO+ZFkMDpnA/lQMqm30KTdSjiwkI04tpapu 5qdMm7Z+o9Us3hP0P3v5KL9GBM686qceGO8PMwttE8BDUuo6/en0n+L75EATQ9ByID1b zfeQ== 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=2moMycywrQ42eaeAXGfpfRPH3bonyoCxrbEmXfINDXI=; b=g4REgbvEIqXe2byrv8u8O8dZ2aE77a46F3TYUrlORnlQOttVu3KROjDdqeiMJYqCIm ZdQAsFguHnMg+AUCfFpQAYbJL8vXmsb1ctxvBPMq92awft3Cv50YpMqhRPu9UYebIjV6 8K3PBVAuort5guIqdyFTni0QheFcIuw40jg8N8/Fjhw6wt6x+oKpiUKvyDCMVBP/1+C6 99bHvOgHabsUCdEKASAUk30B8h0i/PqGAGHUq+NYFAZXN8lqeyx97W7OfopsBBBUNSMk w0rd9lzoMGOpH9LB2tmt8jbjAsgLON4/hAq9+PrZA754GiEA52eAd7HboFzWsv1QfKLd bq2Q== 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 df16si375479edb.158.2020.05.19.14.48.22; Tue, 19 May 2020 14:48:45 -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 S1728159AbgESVql (ORCPT + 99 others); Tue, 19 May 2020 17:46:41 -0400 Received: from ex13-edg-ou-001.vmware.com ([208.91.0.189]:31571 "EHLO EX13-EDG-OU-001.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726030AbgESVqi (ORCPT ); Tue, 19 May 2020 17:46:38 -0400 Received: from sc9-mailhost2.vmware.com (10.113.161.72) by EX13-EDG-OU-001.vmware.com (10.113.208.155) with Microsoft SMTP Server id 15.0.1156.6; Tue, 19 May 2020 14:46:36 -0700 Received: from localhost (unknown [10.200.192.41]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id EAE73B284E; Tue, 19 May 2020 17:46:37 -0400 (EDT) Date: Tue, 19 May 2020 14:46:37 -0700 From: Matt Helsley To: Josh Poimboeuf CC: , Peter Zijlstra , Julien Thierry , Miroslav Benes , Steven Rostedt Subject: Re: [PATCH 3/3] objtool: Enable compilation of objtool for all architectures Message-ID: <20200519214637.GS9040@rlwimi.vmware.com> Mail-Followup-To: Matt Helsley , Josh Poimboeuf , linux-kernel@vger.kernel.org, Peter Zijlstra , Julien Thierry , Miroslav Benes , Steven Rostedt References: <96252a8eee50710f4fe115ca516f0e6058b9f66b.1589913349.git.mhelsley@vmware.com> <20200519211829.p2d454nz3h3mdxsa@treble> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20200519211829.p2d454nz3h3mdxsa@treble> Received-SPF: None (EX13-EDG-OU-001.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 Tue, May 19, 2020 at 04:18:29PM -0500, Josh Poimboeuf wrote: > On Tue, May 19, 2020 at 01:55:33PM -0700, Matt Helsley wrote: > > +const char __attribute__ ((weak)) *objname; > > + > > +int missing_check(const char *_objname, bool orc) > > +{ > > + return 127; > > +} > > + > > +int __attribute__ ((weak, alias("missing_check"))) check(const char *_objname, bool orc); > > + > > +int missing_orc_dump(const char *_objname) > > +{ > > + return 127; > > +} > > + > > +int __attribute__ ((weak, alias("missing_orc_dump"))) orc_dump(const char *_objname); > > + > > +int __attribute__ ((weak)) create_orc(struct objtool_file *file) > > +{ > > + return 127; > > +} > > + > > +int __attribute__ ((weak)) create_orc_sections(struct objtool_file *file) > > +{ > > + return 127; > > +} > > I think the aliased "missing_" functions are no longer needed, right? > i.e. can we just have weak versions of check() and orc_dump()? Oops, Yeah, we can remove those aliases. I can fix and resend this one if you like. > Otherwise everything looks good to me. Excellent. I'm thinking I'll get the relocs patches posted as an RFC next... Cheers, -Matt