Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1125032rwe; Thu, 1 Sep 2022 13:00:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR4SxupNYn3laDDg8aBtojKHNfQZS4dsfunqIHpylEG9SA1RHyotGLcDzwR5FIXoacUhnxQ/ X-Received: by 2002:a05:6402:6c8:b0:44b:ae6c:a874 with SMTP id n8-20020a05640206c800b0044bae6ca874mr1031980edy.235.1662062401314; Thu, 01 Sep 2022 13:00:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662062401; cv=none; d=google.com; s=arc-20160816; b=Ys33EpOyZQ16GKEIU30r4tJv4S/sQ6tUOncjFiBVgS8kl4fKL7x/JamdV4CfiAyWhG 24yVJ7phqk5Ag7wQ3b94+4R6S0C21nKXdK27ZpJb2V3aSmdUZgLjn/YlFzqHpNoAvWTW YJ2+0p8aNGi8TVeCpKpZhmWwPKwxb5mukkxImjBEYh/Oy/apB9aEpLbfosCqgCMVrNX7 0zZErGOz9wnh2cRl0ZymTZJJe1dfbme9facnl5C/RAzsNbX+ihdQ5XV5v/T/KNzMIur8 P0Y9aefi1FbhrrO4Nknqpht6uz8mlyJlqJSoc4JThFqw7UTFiafRoIxha2p2E2ZqobxJ ExuA== 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=vymNTjSXwJnNsXJPg+cP79HIcPwkreZQDqVTNDdjveI=; b=NXiCAINHIcNIV6pSp05Gk8mA40IiUsQtaozf4ioONxqG2V6hh1xY6ylB752IKts15s 4+JxrSSD6/ugwTANLxrfgiLpSirLLi1/tVBHSoLhdvlhB48hbkstewJVD5sMxIsxkBj4 R9qyiN6MErlSdFUWdKqM3VTyVefj5ysIXNyB/IRp7W4nQvKYAKqkSsOWybKhjCergEle Fgdh9gsSSxDKy3bCJLHeuT2UR65hOxU0MdGQEgWnQ/PCkGRQ1Q+nHyoXCxjYovOc4IZU iSMYezq4cD5RagydpFMBT9TknOQYLW9zXdjLpv84+gZDASpE4TdPE66UGhZdi4lhXr3m ZlUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=HHrdNv6A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i27-20020a170906251b00b007316cc1113asi56161ejb.910.2022.09.01.12.59.34; Thu, 01 Sep 2022 13:00:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=HHrdNv6A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233222AbiIATWi (ORCPT + 99 others); Thu, 1 Sep 2022 15:22:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233979AbiIATWe (ORCPT ); Thu, 1 Sep 2022 15:22:34 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0872286FEC for ; Thu, 1 Sep 2022 12:22:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=vymNTjSXwJnNsXJPg+cP79HIcPwkreZQDqVTNDdjveI=; b=HHrdNv6AMAl5SlNNAOe09sQ+cL SHuLWSoy1IK2Gd2FLQLKRF8RHZZrcmHzMKSNOM5G3V4wqbE1ZJ1zKYUeTsV0pNqfSiPRxeEhpAmgi xXZKiD3aKghMlXekpEOuAx3O6tyVPPBL6bo+iCRHknw1RKwl7lpRsKQHT+R8v1sPNKLeQYaIt2juE C1KJNETkkUzM92pIvIj4zvMNzC48RBIcjjAGTAFmaBa3t2mBqHqgZK39Ps7b6PFoaWj3eDYTNAJTO q7jWQQK80RuU86vWqg3jIPDEuyrDNVvchb2yGpKku+ZxFJPeDNbluJZD5GhpLwBzUk/JJv/efUxsn isAcz+Gg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oTpla-006IUK-KN; Thu, 01 Sep 2022 19:22:18 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 12C4230010B; Thu, 1 Sep 2022 21:22:17 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 0348A2B8D5A27; Thu, 1 Sep 2022 21:22:17 +0200 (CEST) Date: Thu, 1 Sep 2022 21:22:16 +0200 From: Peter Zijlstra To: Sathvika Vasireddy Cc: linuxppc-dev@lists.ozlabs.org, jpoimboe@redhat.com, linux-kernel@vger.kernel.org, aik@ozlabs.ru, mpe@ellerman.id.au, mingo@redhat.com, christophe.leroy@csgroup.eu, rostedt@goodmis.org, mbenes@suse.cz, npiggin@gmail.com, chenzhongjin@huawei.com, naveen.n.rao@linux.vnet.ibm.com Subject: Re: [PATCH v2 09/16] objtool: Use target file endianness instead of a compiled constant Message-ID: References: <20220829055223.24767-1-sv@linux.ibm.com> <20220829055223.24767-10-sv@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220829055223.24767-10-sv@linux.ibm.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 29, 2022 at 11:22:16AM +0530, Sathvika Vasireddy wrote: > From: Christophe Leroy > > Some architectures like powerpc support both endianness, it's > therefore not possible to fix the endianness via arch/endianness.h > because there is no easy way to get the target endianness at > build time. > > Use the endianness recorded in the file objtool is working on. > > Signed-off-by: Christophe Leroy Acked-by: Peter Zijlstra (Intel)