This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [patches] Re: RISC-V glibc port, v5
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Palmer Dabbelt <palmer at dabbelt dot com>
- Cc: <libc-alpha at sourceware dot org>, Andrew Waterman <andrew at sifive dot com>, Darius Rad <darius at bluespec dot com>, <dj at redhat dot com>, <patches at groups dot riscv dot org>
- Date: Fri, 26 Jan 2018 12:05:48 +0000
- Subject: Re: [patches] Re: RISC-V glibc port, v5
- Authentication-results: sourceware.org; auth=none
- References: <mhng-68e15b40-8389-413e-947f-4d7401e0f302@palmer-si-x1c4>
On Thu, 25 Jan 2018, Palmer Dabbelt wrote:
> On Thu, 25 Jan 2018 09:58:15 PST (-0800), joseph@codesourcery.com wrote:
> > On Wed, 24 Jan 2018, Palmer Dabbelt wrote:
> >
> > > I believe we've taken into account all the feedback, and are now below 20
> > > test
> >
> > Still missing an ldd_rewrite_script setting as mentioned as needed for
> > multi-ABI support in
> > <https://sourceware.org/ml/libc-alpha/2018-01/msg00008.html> and
> > <https://sourceware.org/ml/libc-alpha/2018-01/msg00521.html>.
>
> Sorry about that, it must have slipped through the cracks. I think this
> should do it
>
> $ cat sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed
> s_^\(RTLDLIST=\)\(.*lib/\)\(ld-linux\)-\(riscv64\)-\(lp64\)\(d*\)\(\.so\.[0-9.]*\)_\1"\2\3-\4-\5\7
> \2\3-\4-\5d\7"_
>
> with the idea being that I want to produce
> RTLDLIST="/lib/ld-linux-riscv64-lp64.so.1 /lib/ld-linux-riscv64-lp64d.so.1"
>
> from any RTLDLIST that we input. It's written such that we can easily extend
> this to support rv32 later, but doesn't do so now.
Yes, that looks right. (The reason for \(.*lib/\) handling being that if
configured with a non-/usr --prefix, the generated RTLDLIST should also
reflect that configured prefix.)
--
Joseph S. Myers
joseph@codesourcery.com