Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp798592ybk; Fri, 15 May 2020 13:58:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8X2PM0p/yMZm19X8dz1inlMqzs5hU8BBnPeVIRByIESXkXET1C9/T3VK2vbMPEfg9+vmN X-Received: by 2002:a17:906:9249:: with SMTP id c9mr4445884ejx.173.1589576287168; Fri, 15 May 2020 13:58:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589576287; cv=none; d=google.com; s=arc-20160816; b=A75HD7Lm6gQgCOeRjT/fJ0Z77r/BsOMe5B1y76EPfbceKP0MwIBVd7mpwZeN9M2LPF QCDERhSt154NGG4YNzV0W1iQjaki6RkLeiYLP/FV5cj3SuzEpVXe8Sn9j5p9TuoDcGYd ont6evE0zEIiPQrlEVdus5QJdS6KE9MB2/fmIzv/44aPfgvyaIN9onxTCJwjAGGEz1su uBeyyp5457J/ePAZvh214l3i6DXM7+PuuYu4H+xJk4crFIidtHgEfK2q7xlBnkhhAPyC NDC8hFmHcmTR+7xIdV288B6YBtakwlJCoIJVqjsMR/B767HYtlOCz+rOk203I/9nd0IP yAdw== 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=XclJikw/kSVnStKK/hg+PLzsRFUWexrJPtiigEia7po=; b=pcKDmd9QhiU2vnRCyn8kLUiYmAzh50+BeNkdLoL1uJh12GghIrDkYuFKl9dhAvhYC1 fWrgS+u/b50hKrLJzENmW/xzILrqZsDlB+nfdgk+j6YN8uRt2qdmTa25g9KWbGMvaJEk RBcvVUdaUijTdjfwDGIT6nKPT5AVadp75FTl3+zpBay3Av6bm4LyP4WyyKcIyrEEWQUq LPI5JxUci6CfIfHd64HS95wt8CIOj0o2ma4s7etJDcrgKaq0ttM0/pvduJu3PLaxm+1+ MQdZvcoj9xLUyCgxHW9aJ65/CFFaJqx6xrMQJdGiDwSIiSSj7U+xr6agrhueOGm/BXS3 x8ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DMx+Zs92; 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 w17si1831573eds.146.2020.05.15.13.57.42; Fri, 15 May 2020 13:58:07 -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=DMx+Zs92; 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 S1726226AbgEOU4T (ORCPT + 99 others); Fri, 15 May 2020 16:56:19 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:55908 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726179AbgEOU4T (ORCPT ); Fri, 15 May 2020 16:56:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589576178; 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=XclJikw/kSVnStKK/hg+PLzsRFUWexrJPtiigEia7po=; b=DMx+Zs92+oPf1Vu3awZjJNT/FqjtUSu6oXOOb3OEhstlJRcWQ8M7o+pTJqCZ1vlQfeT4IM cw1/dnfzc6lgqQ6q/2XD8MkWLKJG60mOo6X8sAmUA6oXL3jcyzRZZu9Yn3XrW1eTPAv5SW b9dwRL0AUAERfL4rh6hhUadB/tjYRpQ= 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-263-gMF37x8lM1WhTl_uO5SNFw-1; Fri, 15 May 2020 16:56:14 -0400 X-MC-Unique: gMF37x8lM1WhTl_uO5SNFw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2DDF3107BEF6; Fri, 15 May 2020 20:56:13 +0000 (UTC) Received: from treble (ovpn-117-151.rdu2.redhat.com [10.10.117.151]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 604671001920; Fri, 15 May 2020 20:56:12 +0000 (UTC) Date: Fri, 15 May 2020 15:56:10 -0500 From: Josh Poimboeuf To: Matt Helsley Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Julien Thierry , Miroslav Benes , Steven Rostedt Subject: Re: [RFC][PATCH 4/5] objtool: Enable compilation of objtool for all architectures Message-ID: <20200515205610.fmdimt7wbafypuqc@treble> References: <9f709ea2ae66cc03b3ff3329baa8f670ccd0e368.1588888003.git.mhelsley@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <9f709ea2ae66cc03b3ff3329baa8f670ccd0e368.1588888003.git.mhelsley@vmware.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 11, 2020 at 10:35:12AM -0700, Matt Helsley wrote: > +struct insn_state { > + struct cfi_reg cfa; > + struct cfi_reg regs[CFI_NUM_REGS]; > + int stack_size; > + unsigned char type; > + bool bp_scratch; > + bool drap, end, uaccess, df; > + bool noinstr; > + s8 instr; > + unsigned int uaccess_stack; > + int drap_reg, drap_offset; > + struct cfi_reg vals[CFI_NUM_REGS]; > +}; > + > +struct instruction { > + struct list_head list; > + struct hlist_node hash; > + struct section *sec; > + unsigned long offset; > + unsigned int len; > + enum insn_type type; > + unsigned long immediate; > + bool alt_group, dead_end, ignore, hint, save, restore, ignore_alts; > + bool retpoline_safe; > + s8 instr; > + u8 visited; > + struct symbol *call_dest; > + struct instruction *jump_dest; > + struct instruction *first_jump_src; > + struct rela *jump_table; > + struct list_head alts; > + struct symbol *func; > + struct stack_op stack_op; > + struct insn_state state; > + struct orc_entry orc; > +}; Why were these moved to arch.h? They're not necessarily arch-specific, but rather "check"-specific, so I think they still belong in check.h, if possible. -- Josh