Message ID | 20231118031513.31109-1-chenglulu@loongson.cn |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp963505vqn; Fri, 17 Nov 2023 19:15:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEmy+EikAlunz8gImC5DGeX1hoDCtA1HqzWJ/yUaU3PV2UDOg0ITwlHJVApVque/xUOMXAX X-Received: by 2002:a05:620a:2d95:b0:76c:e7b7:1d9d with SMTP id tr21-20020a05620a2d9500b0076ce7b71d9dmr1433669qkn.27.1700277351047; Fri, 17 Nov 2023 19:15:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700277351; cv=pass; d=google.com; s=arc-20160816; b=DTn75IAIEkTHzGLrS0bNg10dIgvxg3Piu7MDscj7i0bpcG3p7FwpOKm2ZoMO4vYzMN 9Gie7NRjgGQgRb0QTuHsKmg6BMml8rJmHRHE73fRFpanjk8zybdBE9pXLsLdhc8ROGul oqeS3LSxG/1YqUyVHAwcWT5O1i2VwBKhZyQxxYflOjE3ITBWBIwGuHQJSoNci98n2QLr 7EuZpzLLR3URaOB4h2w9mUs5aFfQ6EWk7qEZDglhj1H/V91vcT9nyECwV24442/xsPga bI43vm1RVUHEAo1Z2TnkjHw2Bqa/3pMQlZiCCYBU7nj5p98EYaDqTZB4mSo4T8Duwprc 2wWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:arc-filter :dmarc-filter:delivered-to; bh=deMb6enb63EdibwJyvGZoQ3+Df3WwuGb7K8ysoKQS5A=; fh=OEE0/GLH6PP4NMD1y7Jz0NwcqP2MyjcbuXZuBEBLxWs=; b=o8pFd6Nj6qKjgR5/+bx9ARpsklXwY6JY6KYw0YlJLd0sSbeZWfQNjqOE30DXPYOTG5 iXhajZBAjFKc0F+J8/q4mD5rEH5HfvCMe4sbkuPMlq3RLoAtSjFxTvj6ASCrX2xOzpYQ aBZ55doW1YJAirkwmkst+Q7RxnUThe75/MNqZymVGuRG35DArPEDbsaeQIQgoism5vWj TBffEqSrDNL6MNz9kdofVJ616+LWn3PKY8pGPPq8heTgWJA14fRBpWKCEt2JY0xBnGTm BG6HPnT/DnCgrWy1MSfJiIhhA0Nsyw0w2MN5kwmNdNv5dB3bjegCAJUti+qCVY7VZDUh +6lw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id g13-20020a05620a13cd00b0076cafcc69aesi2801056qkl.453.2023.11.17.19.15.50 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 19:15:51 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CB26F3858C30 for <ouuuleilei@gmail.com>; Sat, 18 Nov 2023 03:15:50 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id 91A953858D1E for <gcc-patches@gcc.gnu.org>; Sat, 18 Nov 2023 03:15:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 91A953858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 91A953858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=114.242.206.163 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700277328; cv=none; b=xOnpj/0vfrHglew24tz85jpfs56MXcWmy5vaK9cZ8x7iUKHHs/Dq39yOzk0x4SRhxVTm3W/lLe+zktymrGQDhGKmdl03LubhB1ysbmI2+EDd7BOEce2O6PuoS9irj4wByRmXO270uGAmhPYE7NV2jGHMbNd15J7FO2GfrpTDmrg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700277328; c=relaxed/simple; bh=0iWCfFUqzWEoqOD0rRnxT4a5i/VDR+Y+Xf/ylUzJDTU=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=vLRP2W9Xdx4TAS1inXL5aH/EIGQT26q9do/cIGz8J0Q6pjK/+B0sZyjdJYbl3qTZqyI9h9p50OK8Ya9bYk8xeRET5gW2O+bZzmXk/YApwnuAFqhQjo1OyreuQTXMH/r+25rHMcYc6nXazjbFsCxCf9IWS1dGhgu5YcGNQA8SHWY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from loongson.cn (unknown [10.20.4.107]) by gateway (Coremail) with SMTP id _____8AxV_FKLFhlkug6AA--.51431S3; Sat, 18 Nov 2023 11:15:22 +0800 (CST) Received: from loongson-pc.loongson.cn (unknown [10.20.4.107]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dx_y9JLFhlJP5FAA--.22686S2; Sat, 18 Nov 2023 11:15:22 +0800 (CST) From: Lulu Cheng <chenglulu@loongson.cn> To: gcc-patches@gcc.gnu.org Cc: xry111@xry111.site, i@xen0n.name, xuchenghua@loongson.cn, lixing@loongson.cn, huajingyun@loongson.cn, Lulu Cheng <chenglulu@loongson.cn> Subject: [PATCH] LoongArch: Modify MUSL_DYNAMIC_LINKER. Date: Sat, 18 Nov 2023 11:15:13 +0800 Message-Id: <20231118031513.31109-1-chenglulu@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Dx_y9JLFhlJP5FAA--.22686S2 X-CM-SenderInfo: xfkh0wpoxo3qxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBj93XoW7WrWUWF48Xw4DJF1xJw4xAFc_yoW8Jw17pr ZI9r1agr1xCr4Dtws8t3sxWr4DAFyxKw12vF12q3W8CF42kryUZFn0qr4kZa4UJ3yFqryI vFy8KayUX3W5A3XCm3ZEXasCq-sJn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUkjb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r106r15M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Gr0_Gr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I 8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AK xVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2Ij64 vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8G jcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2I x0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK 8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I 0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07j8yCJUUUUU= X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782870023634669972 X-GMAIL-MSGID: 1782870023634669972 |
Series |
LoongArch: Modify MUSL_DYNAMIC_LINKER.
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
chenglulu
Nov. 18, 2023, 3:15 a.m. UTC
Use no suffix at all in the musl dynamic linker name for hard float ABI. Use -sf and -sp suffixes in musl dynamic linker name for soft float and single precision ABIs. The following table outlines the musl interpreter names for the LoongArch64 ABI names. musl interpreter | LoongArch64 ABI --------------------------- | ----------------- ld-musl-loongarch64.so.1 | loongarch64-lp64d ld-musl-loongarch64-sp.so.1 | loongarch64-lp64f ld-musl-loongarch64-sf.so.1 | loongarch64-lp64s gcc/ChangeLog: * config/loongarch/gnu-user.h (MUSL_ABI_SPEC): Modify suffix. --- gcc/config/loongarch/gnu-user.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gcc/config/loongarch/gnu-user.h b/gcc/config/loongarch/gnu-user.h index 9616d6e8a0b..e9f4bcef1d4 100644 --- a/gcc/config/loongarch/gnu-user.h +++ b/gcc/config/loongarch/gnu-user.h @@ -34,9 +34,9 @@ along with GCC; see the file COPYING3. If not see "/lib" ABI_GRLEN_SPEC "/ld-linux-loongarch-" ABI_SPEC ".so.1" #define MUSL_ABI_SPEC \ - "%{mabi=lp64d:-lp64d}" \ - "%{mabi=lp64f:-lp64f}" \ - "%{mabi=lp64s:-lp64s}" + "%{mabi=lp64d:}" \ + "%{mabi=lp64f:-sp}" \ + "%{mabi=lp64s:-sf}" #undef MUSL_DYNAMIC_LINKER #define MUSL_DYNAMIC_LINKER \