Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp796449ybk; Fri, 15 May 2020 13:53:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOE7V4joxlzVsbxzQUMde0fPfLxr1ZbW0yo59JT/UfpgWHWXPVm7yrRCmtmlX7WtHevRNt X-Received: by 2002:a17:907:9481:: with SMTP id dm1mr4834971ejc.268.1589576009631; Fri, 15 May 2020 13:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589576009; cv=none; d=google.com; s=arc-20160816; b=T0RDDi18Vd86qVekwWEFy0S28vptncS+9YYAOfeHZWUkZZaTpOvJSmLV6+2R7sKMc4 /t00Nm3e+1WM0WntXNuMXxjr+j1KNyGJBijQi6ZHYp5m8JTQ3jQ1Z3nehhCbnT8cXbhi 8nGDw8hHdGQZFbQfRNhxStYmK+P7keTFzk+gZjShWqxQqIZbsJLjKmNkeoyXq9zUg28I a1mkAXBBZXYBxwufxH/l28lCA4q6uXZWUOqCdkeU2kstUThQKGoMlGgsgQLNa2q/Wi+B zMfkRTNqoSPXDfz0mWuLwhHA4f6XT7ZXxNYbC22/VcZAB4pex8OGBM6klDl02DFZZaBr +r7w== 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=FHPcJo3/hUrokZL+DP7WLakvS6EX9QMKXwY5VRZtidY=; b=ZJOUumqlKzgnrGFxG08n3HWdFQvJxoeCqeDBk9I0BJRUjdrgY+K8GVxt1T79Mqw6Es kk6hBOt0owazPiT5c4iZxzsX+gAhfIw4JjM8VMpiy6Cj1Pfp/AYmR9+cy5a6UE8JLnRl buZfdTDAfpmsOGvtnKgIm0qksqXXYNuYZspAhvw1XE9SpAn1gdtNbw8pf8CxpMT9BnUH Ov3dVCqjq2Fu8uob3HeVuMpyuLHV8nUX+iyeQe/Y2+gIg6cLkrlOJTSSuS0Z2ks3ursy sqS6wv50WssahC/N7eutO+R6by33LdptOzKKjCGwQ3Cq0VrQDBWWRBiW6n7nysBrXW4t DTOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="CN/hLDPV"; 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 t11si1720872edt.523.2020.05.15.13.53.05; Fri, 15 May 2020 13:53: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="CN/hLDPV"; 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 S1726283AbgEOUvo (ORCPT + 99 others); Fri, 15 May 2020 16:51:44 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:36250 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726183AbgEOUvo (ORCPT ); Fri, 15 May 2020 16:51:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589575903; 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=FHPcJo3/hUrokZL+DP7WLakvS6EX9QMKXwY5VRZtidY=; b=CN/hLDPVem+NeRmh3E4uw5biXn9uWqf7qVkG7stxEi7WKzETl7zVE1yig2Cl2eDCLwFkPS nyh3w8Z8DbZe5/x9LTkyJbbZ0bWNKpUl2gzDPMyAVjkqZO//ucAtZIqq49vxNPudJMU0hw FzEoWthv7NCdZ6sQ8Q3IhfNox8SLjEw= 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-25-ZKC5u3TfPteBbGqUTTJjEQ-1; Fri, 15 May 2020 16:51:39 -0400 X-MC-Unique: ZKC5u3TfPteBbGqUTTJjEQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 084C4460; Fri, 15 May 2020 20:51:38 +0000 (UTC) Received: from treble (ovpn-117-151.rdu2.redhat.com [10.10.117.151]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1FAFC5D9C9; Fri, 15 May 2020 20:51:37 +0000 (UTC) Date: Fri, 15 May 2020 15:51:35 -0500 From: Josh Poimboeuf To: Julien Thierry Cc: Matt Helsley , linux-kernel@vger.kernel.org, Peter Zijlstra , Miroslav Benes , Steven Rostedt Subject: Re: [RFC][PATCH 4/5] objtool: Enable compilation of objtool for all architectures Message-ID: <20200515205135.5pknexlld53oicu5@treble> References: <9f709ea2ae66cc03b3ff3329baa8f670ccd0e368.1588888003.git.mhelsley@vmware.com> <20200513155948.GI9040@rlwimi.vmware.com> 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.14 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 13, 2020 at 05:55:31PM +0100, Julien Thierry wrote: > > > Since the stuff under arch/missing is only weak symbols to make up for > > > missing subcmd implementations, can we put everything in a file > > > subcmd_defaults.c (name up for debate!) that would be always be compiled an > > > linked. And some SUBCMD_XXX is set to "y", the corresponding object file > > > gets compiled and overrides the weak symbols from subcmd_defaults.c . > > > > Hmm, I like keeping them separated along similar lines to the other > > code because it makes it easier to see the intended correspondence and > > likely will keep the files more readable / smaller. I could > > just move them out of arch/missing and into missing_check.c and so forth. > > > > What do you think of that? > > > > I do prefer that to the introduction of an arch/missing. > > Still, I'm not sure I see much benefit in splitting those small > implementations in separate files, but it's not a problem either. This seems > more a matter of taste rather than one approach working better than the > other. So it's more up to what the maintainer prefer! :) For now I'd prefer getting rid of the 'missing' arch and just having a single top-level weak.c which has all the weak functions in it. Keeps the clutter down :-) Down the road, if the number of weak functions got out of hand then we could look at splitting them up into multiple files. -- Josh