Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1387957pxk; Fri, 2 Oct 2020 08:22:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzH1X8NrqC847aKEVH18vkrg14nwf8iYmr5jJK5GokJKIrFm6oM5mza5Q6ZLWbtyxo5n8gJ X-Received: by 2002:a05:6402:1d29:: with SMTP id dh9mr2971582edb.124.1601652149635; Fri, 02 Oct 2020 08:22:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601652149; cv=none; d=google.com; s=arc-20160816; b=Edo7eTRNEtsDROXo8FkFlVgj55DMn+lV4eSDPc+yKHxTvSAwiEejzIImrXttGge5IV Dd7Fajli8Wc+4sbSZxwhWhCtkF7LaHXubJlqnTXZLKQ/VdVuXpVSsUnBom/x5Ng361AP A1Gx9KrEgTE+sq04LHB3VZAHCcsXpw/LAl8qXGRYaVc0E5D45mP4+zdag+7aYR7hpzTU fnyTC5S5H0fZlVcpSPzGdCiGsbiq31CdV5o2+wrzgtyRdYRfexZfXuQtQUJeiX73F3rN b0oPd0a6Bx0xZI59vnd+1zuJEmFleAdwQU1JCQ9hG1Vz5KXB1VJPAdUJKGozxuJiICvx SA2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=z6EUHBkqVW4A4asmEIKfV9etkeKueHKWkFuO9+VAbxk=; b=li/SBAng0NbC+1NXMzyTrAtYB3LmD6numruCKbsUdQ7UOjcv94j2Hfnd4FCIGQr2Nr 3nNziXcXoMSBKslr0FbO3dE6bDuLSG6co90yy1bHaCOgCAIfZM+N27hgEc4KUI+380Lr J63htLF4D/xQP70rvgr7CveAciYWwCJrrKNypspiBWKdtv4Dox8G2/ly40O7VZJMNdcp YhOrnobO3D26PkJihfz9fFIYp5H74ArEBvrJJ/YBUrNJMpLUwRpzkQ84zHqg6OOPtZRz q5FGBhxKyaUbvkBZApzBOi7PjFhzWBTT5nq21Zs52KMFc3x5uQB5/XvSUMVUeasc1cJ+ SjSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EX000Tc6; 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 q24si1310964eju.323.2020.10.02.08.22.07; Fri, 02 Oct 2020 08:22: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=EX000Tc6; 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 S2388074AbgJBPS7 (ORCPT + 99 others); Fri, 2 Oct 2020 11:18:59 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:44978 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726017AbgJBPS7 (ORCPT ); Fri, 2 Oct 2020 11:18:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601651938; 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=z6EUHBkqVW4A4asmEIKfV9etkeKueHKWkFuO9+VAbxk=; b=EX000Tc6LUzQSyXiiN3lyjLZdvUu2n9mk11573pEZ7huUsBXSBe2qf9F3F6bqfVVb0c+xm S+ngX7jh8EHepFcpNPKOGpn6w1ul7wfbtwqOoj3pCNzTzPeavtMsdAo7hnjfZt4JF1C1gK snNdpBePCnLwVR4XRA27dDXW70WnZiU= 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-477-pY_T4ZhEP9e783VyIblwTQ-1; Fri, 02 Oct 2020 11:18:56 -0400 X-MC-Unique: pY_T4ZhEP9e783VyIblwTQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D737C104D40D; Fri, 2 Oct 2020 15:18:49 +0000 (UTC) Received: from treble (ovpn-114-202.rdu2.redhat.com [10.10.114.202]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D4FD973699; Fri, 2 Oct 2020 15:18:44 +0000 (UTC) Date: Fri, 2 Oct 2020 10:18:41 -0500 From: Josh Poimboeuf To: Vasily Gorbik Cc: Peter Zijlstra , Thomas Gleixner , Masami Hiramatsu , David Laight , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Miroslav Benes , Alexandre Chartre , Julien Thierry , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v3 2/4] objtool: x86 instruction decoder and big endian cross compiles Message-ID: <20201002151841.4ojt45mtcpkylvdq@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.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 01, 2020 at 12:17:25AM +0200, Vasily Gorbik wrote: > From: Martin Schwidefsky > > Currently objtool seems to be the only tool from build tools needed > which breaks x86 cross compilation on big endian systems. Make the x86 > instruction decoder of the objtool usable on big endian machines. > > Signed-off-by: Martin Schwidefsky > Co-developed-by: Vasily Gorbik > Signed-off-by: Vasily Gorbik Since this changes the decoder (which is shared with the kernel), please prefix the subject with "x86/insn:" instead of "objtool". This patch is a bit ugly, but I don't necessarily have a better idea. Masami? -- Josh