Message ID | 20230419082342.21705-1-fanpeng@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:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp211466vqo; Wed, 19 Apr 2023 01:24:29 -0700 (PDT) X-Google-Smtp-Source: AKy350ZZQA1pIaQujH8xiKxKsabIBz4NMUsXRhE/ATYaxQco81q7mFJ7Qm4PV5foQjFm1mr9Pp5b X-Received: by 2002:a17:907:20c8:b0:93c:efaf:ba75 with SMTP id qq8-20020a17090720c800b0093cefafba75mr13179543ejb.37.1681892669452; Wed, 19 Apr 2023 01:24:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681892669; cv=none; d=google.com; s=arc-20160816; b=W/X0HPdDmAyDrFwamkV7v9JAZCYGjIOfxseBofnbHxfGZOViJrbrYJa2FG5EX+zA+y EqKwXEi/dPZmCxm3msqBpY669ZiLOuRqwYXE3XDMphjXv9ygmgXhuO7R9U4jvaIXvIs2 ogO14Eg5/jdgp3BOI3s0o57GfXksTnW+ZcdYrfA5Axb1IQuPVQ3vnwidw+6J6NMCV5MO PVm480zizsN/4F/FvI3ZbW5jtjMLfYoY+UnsClgGo/0gIzK9xYs/OButmWGfKWgXIS7b XF5Ql8HhXG4opotaxJCjn/xddLiC5oNyZ9/FMR6BzMNrBST+2ybIHhF5DndHlwajIXPC VyBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender: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:dmarc-filter :delivered-to; bh=8vXHdTIHnJa3USkyrDIIGzzdGWPyDvhPM3RhKdpYdLs=; b=DulX9bgc541TMEaB7FeXQmSKSE+mB2H6thMeGHLLZII7GbyeCNZdZde1Teh1N/u4/j J1RuU9QBveCmw5HhBvZOkXdaaSlclLPn/Z1nOECBdUf+jADpgl+pfE7LBvZeu8XpitVn AVBQGe+1y9UR0qM6d5Omcma6YEsX1YdBsH82obCnQUpIvMY+zp3jBwPs3ZHC8tbggtpQ nQZXgL2JejmKRwb2SqPsRTgwcwj7oB+2lmRFEUJbV9ezkfCJZ4wSH40yzzjKAQDxatOE xStAvk5lALxY/NAkZV2E8fhQqt+9P8DJq5OuP6K5EZdYTh9cdXNRJR+gmR/Kii0398pQ Qjog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id l17-20020aa7c311000000b00506a157f1b1si1844173edq.631.2023.04.19.01.24.29 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Apr 2023 01:24:29 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 5EABA3857028 for <ouuuleilei@gmail.com>; Wed, 19 Apr 2023 08:24:25 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id 467D93858D1E for <gcc-patches@gcc.gnu.org>; Wed, 19 Apr 2023 08:23:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 467D93858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [111.9.175.10]) by gateway (Coremail) with SMTP id _____8AxJMQYpT9kVtkeAA--.36763S3; Wed, 19 Apr 2023 16:23:53 +0800 (CST) Received: from localhost.localdomain (unknown [111.9.175.10]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxwOQQpT9kescuAA--.26699S2; Wed, 19 Apr 2023 16:23:49 +0800 (CST) From: Peng Fan <fanpeng@loongson.cn> To: gcc-patches@gcc.gnu.org Cc: chenglulu@loongson.cn, Xi Ruoyao <xry111@xry111.site> Subject: [PATCH] LoongArch: fix MUSL_DYNAMIC_LINKER Date: Wed, 19 Apr 2023 16:23:42 +0800 Message-Id: <20230419082342.21705-1-fanpeng@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8DxwOQQpT9kescuAA--.26699S2 X-CM-SenderInfo: xidq1vtqj6z05rqj20fqof0/1tbiAQAGEmQ+iHoSVwADs7 X-Coremail-Antispam: 1Uk129KBjvJXoW7GFW8XFWfCw4kArWxAw13urg_yoW8JrWDpr 9Iyr1ftrWrCrsYkws5t3sxurZFga92k347uF47Xw4DCa1Ykw18ZF1rKr4DZa1qqw4rXFy2 vr18KFWUZF43A3JanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU b7AYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwA2z4 x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4UJVWxJr1l e2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2 IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4U McvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxGrwCFx2 IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v2 6r106r1rMI8E67AF67kF1VAFwI0_Jrv_JF1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67 AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IY s7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr 0_GrUvcSsGvfC2KfnxnUUI43ZEXa7IU1CPfJUUUUU== X-Spam-Status: No, score=-13.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, 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.29 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 Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763592287579446642?= X-GMAIL-MSGID: =?utf-8?q?1763592287579446642?= |
Series |
LoongArch: fix MUSL_DYNAMIC_LINKER
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
ticat_fp
April 19, 2023, 8:23 a.m. UTC
The system based on musl has no '/lib64', so change it.
https://wiki.musl-libc.org/guidelines-for-distributions.html,
"Multilib/multi-arch" section of this introduces it.
gcc/
* config/loongarch/gnu-user.h (MUSL_DYNAMIC_LINKER: Redefine.)
Signed-off-by: Peng Fan <fanpeng@loongson.cn>
Suggested-by: Xi Ruoyao <xry111@xry111.site>
---
gcc/config/loongarch/gnu-user.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
Comments
Pushed to r14-130. 在 2023/4/19 下午4:23, Peng Fan 写道: > The system based on musl has no '/lib64', so change it. > > https://wiki.musl-libc.org/guidelines-for-distributions.html, > "Multilib/multi-arch" section of this introduces it. > > gcc/ > * config/loongarch/gnu-user.h (MUSL_DYNAMIC_LINKER: Redefine.) > > Signed-off-by: Peng Fan <fanpeng@loongson.cn> > Suggested-by: Xi Ruoyao <xry111@xry111.site> > --- > gcc/config/loongarch/gnu-user.h | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/gcc/config/loongarch/gnu-user.h b/gcc/config/loongarch/gnu-user.h > index aecaa02a199..fa1a5211419 100644 > --- a/gcc/config/loongarch/gnu-user.h > +++ b/gcc/config/loongarch/gnu-user.h > @@ -33,9 +33,14 @@ along with GCC; see the file COPYING3. If not see > #define GLIBC_DYNAMIC_LINKER \ > "/lib" ABI_GRLEN_SPEC "/ld-linux-loongarch-" ABI_SPEC ".so.1" > > +#define MUSL_ABI_SPEC \ > + "%{mabi=lp64d:-lp64d}" \ > + "%{mabi=lp64f:-lp64f}" \ > + "%{mabi=lp64s:-lp64s}" > + > #undef MUSL_DYNAMIC_LINKER > #define MUSL_DYNAMIC_LINKER \ > - "/lib" ABI_GRLEN_SPEC "/ld-musl-loongarch-" ABI_SPEC ".so.1" > + "/lib/ld-musl-loongarch" ABI_GRLEN_SPEC MUSL_ABI_SPEC ".so.1" > > #undef GNU_USER_TARGET_LINK_SPEC > #define GNU_USER_TARGET_LINK_SPEC \
diff --git a/gcc/config/loongarch/gnu-user.h b/gcc/config/loongarch/gnu-user.h index aecaa02a199..fa1a5211419 100644 --- a/gcc/config/loongarch/gnu-user.h +++ b/gcc/config/loongarch/gnu-user.h @@ -33,9 +33,14 @@ along with GCC; see the file COPYING3. If not see #define GLIBC_DYNAMIC_LINKER \ "/lib" ABI_GRLEN_SPEC "/ld-linux-loongarch-" ABI_SPEC ".so.1" +#define MUSL_ABI_SPEC \ + "%{mabi=lp64d:-lp64d}" \ + "%{mabi=lp64f:-lp64f}" \ + "%{mabi=lp64s:-lp64s}" + #undef MUSL_DYNAMIC_LINKER #define MUSL_DYNAMIC_LINKER \ - "/lib" ABI_GRLEN_SPEC "/ld-musl-loongarch-" ABI_SPEC ".so.1" + "/lib/ld-musl-loongarch" ABI_GRLEN_SPEC MUSL_ABI_SPEC ".so.1" #undef GNU_USER_TARGET_LINK_SPEC #define GNU_USER_TARGET_LINK_SPEC \