From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 44145 invoked by alias); 24 May 2019 20:09:54 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 44137 invoked by uid 89); 24 May 2019 20:09:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 spammy=blowing, HX-Languages-Length:891, Whoops, H*i:sk:2ee54d4 X-HELO: userp2120.oracle.com Received: from userp2120.oracle.com (HELO userp2120.oracle.com) (156.151.31.85) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 24 May 2019 20:09:53 +0000 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x4OK9V0d079322; Fri, 24 May 2019 20:09:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : references : date : in-reply-to : message-id : mime-version : content-type; s=corp-2018-07-02; bh=YfNrqL5GMbYjBIgDxk5iyVDikPjjfdbAfSCBf+Dt7lA=; b=NBcBG6rf4c53GFqrYUL+UfQcVvFo+vZEC1OWuELgeeYRI+jnOP4ilMncdPgR/zSlwC3M yKz8A377gI6zLDBHVZTP+rLJzLkJ0zwAdJINd+h1I35fq+Sh23g81afdw+mTY9ckRKOl SbR4EwH2QPIKGU2FX0gy35EXKzaC0kC2ZQJyzJ/MlWDN5cL0doPav8VyeSdkoPmL8Ej0 OccTKsewtdm1MRtS3pVvNIOP+2EnnIpj3pskSHDeaw9dkcW33+5lkyXVVMe3wf2WS5Zn tZzzG8sV+0x+ReZj/jONzA1fC1XO3ElgJpBHY1TXodX2+v5vrnZNKi4+wj5yfv1eW53Z mQ== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 2smsk5k75h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 24 May 2019 20:09:36 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x4OK9KTt190679; Fri, 24 May 2019 20:09:36 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 2smshg2hs4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 24 May 2019 20:09:36 +0000 Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x4OK9Zod029830; Fri, 24 May 2019 20:09:35 GMT Received: from loom (/81.187.191.129) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 24 May 2019 20:09:34 +0000 From: Nick Alcock To: Pedro Alves Cc: Joseph Myers , binutils@sourceware.org Subject: Re: [PATCH 00/19] libctf, and CTF support for objdump and readelf References: <20190430225706.159422-1-nick.alcock@oracle.com> <8736lvwr9p.fsf@esperi.org.uk> <3ce5d56c-8cb1-7d66-f3aa-53e53050baf9@redhat.com> <87o93rbzz8.fsf@esperi.org.uk> <2ee54d46-0657-6601-ca69-e2aa447085f4@redhat.com> Date: Fri, 24 May 2019 20:09:00 -0000 In-Reply-To: <2ee54d46-0657-6601-ca69-e2aa447085f4@redhat.com> (Pedro Alves's message of "Fri, 24 May 2019 17:19:45 +0100") Message-ID: <87ftp3bon7.fsf@esperi.org.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg00349.txt.bz2 On 24 May 2019, Pedro Alves told this: > On 5/24/19 5:04 PM, Nick Alcock wrote: > If everything works in a cross endianness setting too (e.g., big endian > host x little endian target) then you're golden. :-) It did when I tested it last, which was some weeks ago. The ctf_archive format is fixed-endian (little-endian): everything else byteswaps at open time if the magic number suggests it needs to, since at open time it's reading it all in and blowing the dcache anyway and byteswapping everything necessary costs nothing. (And means we can ignore endianness everywhere else in the codebase.) Note: the original CTF format (as seen on Solaris, FreeBSD etc) is completely endian-ignorant. It looks like they never considered endianness at all, so it's totally nonportable to machines of opposing endianness. Whoops...