From: Lulu Cheng <chenglulu@loongson.cn>
To: Peng Fan <fanpeng@loongson.cn>, gcc-patches@gcc.gnu.org
Cc: Xi Ruoyao <xry111@xry111.site>
Subject: Re: [pushed][PATCH] LoongArch: fix MUSL_DYNAMIC_LINKER
Date: Fri, 21 Apr 2023 15:30:59 +0800 [thread overview]
Message-ID: <f3633e3f-3f2a-f3a9-f806-353c51180553@loongson.cn> (raw)
In-Reply-To: <20230419082342.21705-1-fanpeng@loongson.cn>
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 \
prev parent reply other threads:[~2023-04-21 7:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-19 8:23 [PATCH] " Peng Fan
2023-04-21 7:30 ` Lulu Cheng [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f3633e3f-3f2a-f3a9-f806-353c51180553@loongson.cn \
--to=chenglulu@loongson.cn \
--cc=fanpeng@loongson.cn \
--cc=gcc-patches@gcc.gnu.org \
--cc=xry111@xry111.site \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).