From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 963C7385841C for ; Thu, 2 Mar 2023 11:21:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 963C7385841C Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1677756114; bh=ljtBn62LDxuk0b6qswHyQKYCsCfOUmEoSTUx1lVR0A8=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=ndWWOlZTNmEzqcZSeHuYZP54gjPS1bOuawjafMYvo/g4uOXBqeEBD98g0f1qWuxw5 w7HovhesugdYR/AKGVqf3ve1pnyhFzn5RIoTpSZgHguEOitVOqTJ4z8Dp9CrihxRxZ pgvEd1nqqpLHeaW85QvJc3b7ae84QDm83QwKVAtU= Received: from [IPv6:2408:8471:1003:36e3:fcc9:73a2:e263:ac75] (unknown [IPv6:2408:8471:1003:36e3:fcc9:73a2:e263:ac75]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id EBEE566307; Thu, 2 Mar 2023 06:21:48 -0500 (EST) Message-ID: Subject: Re: [PATCH] elfedit: add support for editing e_flags From: Xi Ruoyao To: WANG Xuerui , binutils@sourceware.org Cc: Chenghua Xu , Zhensong Liu , Qinggang Meng , WANG Xuerui , Weining Lu Date: Thu, 02 Mar 2023 19:21:43 +0800 In-Reply-To: References: <20230302080137.3346439-1-i.swmail@xen0n.name> <502da978c3a38a5216a0d9abbbe3ebf22f8688e5.camel@xry111.site> <660c58cc-10bf-c43b-aded-27a27300cea3@xen0n.name> <1b9715e49f81b2104364e8477889cc142c1011c3.camel@xry111.site> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,LIKELY_SPAM_FROM,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, 2023-03-02 at 19:02 +0800, WANG Xuerui wrote: > Indeed the object files are correctly LP64S with FP instructions. Won't= =20 > have to ask every LoongArch distro to upgrade toolchains any more... You may need to fix and/or upgrade Clang if you want to build the DCN driver with it. A Clang "14.0.6" (no idea what it really is, IIRC even Clang 15 does not support LoongArch) on gcc400.fsffrance.org (Arch Linux installed) produces: [xry111@gcc400 ~]$ clang t.c -c -mabi=3Dlp64s -mfpu=3D64 [xry111@gcc400 ~]$ readelf -a a.out | grep FLOAT Flags: 0x43, DOUBLE-FLOAT, OBJ-v1 And there is some more strange thing: [xry111@gcc400 ~]$ clang t.c -c -mabi=3Dlp64s -mfpu=3D32 [xry111@gcc400 ~]$ readelf -a a.out | grep FLOAT Flags: 0x43, DOUBLE-FLOAT, OBJ-v1 Why would "lp64s" and "fpu=3D32" lead to double float ?! Cc +=3D Weining, though I'm not sure if this issue still exists in LLVM mainline. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University