From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 09BDF385803E for ; Wed, 24 Jan 2024 12:25:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 09BDF385803E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 09BDF385803E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706099130; cv=none; b=xbthl5N25V+1kyzsqGq+blzaiSKJMF1z2sfu5Sc2Jgk/oq9LL2wvUsjGAIj5Cmx+/B8yptOqb2fZVJWVoEa0JvwY6Xf3tmspj8dLKJK7GOjEvqyerjuJiCHEyA+ErS+vFsYKHzD1jLovBbbx2k4CQkVP8OQyPcfl+k+r9HTUQDg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706099130; c=relaxed/simple; bh=Hw8JCtThqh4SjfQt+k8Y7UUk9sk49SRJcJSL0oWXah0=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=hu5GoOfvHnSa72X8i2VFsVhCts/jjaU7jma24uDHgCaIKVw6DGZuEyGalxOr8aB7w6C9vMe+/CiT/DIHAcdkoIzBypX+sYGRofLuszDy5goYpcxK5vCWeAeCDAAq01nW3NubqdsnXFklBr1ATbiDKAT24WNIdE/teZ3tmSN/IfQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706099128; 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: content-transfer-encoding:content-transfer-encoding; bh=xMCxksQHU33tsIUhWk0kntM3Wr98g9+Tyo+yn/TwaFM=; b=UNL3NGogM/VyFZOD87z5Rdf9XDDBxK/f6c6KTXE0PPu7D8gc8m09fjRvaohjrZCC1dPXMg M3vJP4Fje4hFJb1pDQRkEAnmhpQYkHZS9Qhd2N+8+N1FswjobLONTprsqUAoYNhM0HeRnl HaAT/oCupQC2Pb+Dn4cyAKNaKg8GgUo= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-588-ryPYmXDPMtmNbVUVURJSpQ-1; Wed, 24 Jan 2024 07:25:25 -0500 X-MC-Unique: ryPYmXDPMtmNbVUVURJSpQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 38F7828C9772 for ; Wed, 24 Jan 2024 12:25:25 +0000 (UTC) Received: from devr9.home.annexia.org (unknown [10.42.28.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id CDA661530; Wed, 24 Jan 2024 12:25:24 +0000 (UTC) From: "Richard W.M. Jones" To: binutils@sourceware.org Cc: rjones@redhat.com Subject: [PATCH v2] binutils/windmc: Parse input correctly on big endian hosts Date: Wed, 24 Jan 2024 12:25:22 +0000 Message-Id: <20240124122523.384659-1-rjones@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,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 server2.sourceware.org List-Id: This second version of the patch uses the recommended way to find host endianness. Note that you have to rerun 'autoreconf' with the correct version of autoconf (2.69) before this actually works. I didn't include that in the patch since the change is all in generated code. (I can send the patch if you really want. Also, why autoconf 2.69 exactly? That makes it much harder to build and test this on modern systems.) Rich.