[patches] Re: [PATCH] RISC-V: Fix library search path for rv32
Kito Cheng
kito.cheng@gmail.com
Thu Sep 20 01:50:00 GMT 2018
Oh, damm, I am so careless...rv32 glibc supporting[1] is under review,
and its using lib32/<abi> as search path, so this change is
prerequirement of rv32 glibc.
Code snippet from [1]:
sysdeps/unix/sysv/linux/riscv/dl-cache.h | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/sysdeps/unix/sysv/linux/riscv/dl-cache.h
b/sysdeps/unix/sysv/linux/riscv/dl-cache.h
index cbd6ef5..f3a999a 100644
--- a/sysdeps/unix/sysv/linux/riscv/dl-cache.h
+++ b/sysdeps/unix/sysv/linux/riscv/dl-cache.h
@@ -34,6 +34,8 @@
RISC-V, libraries can be found in paths ending in:
- /lib64/lp64d
- /lib64/lp64
+ - /lib32/ilp32d
+ - /lib32/ilp32
- /lib (only ld.so)
so this will add all of those paths.
[1] https://sourceware.org/ml/libc-alpha/2018-07/msg00470.html
On Thu, Sep 20, 2018 at 5:37 AM Jim Wilson <jimw@sifive.com> wrote:
>
> On Wed, Sep 19, 2018 at 2:27 AM Kito Cheng <kito.cheng@gmail.com> wrote:
> > Current rv32 library search path are set to lib/<abi>, however
> > according the library path settings in gcc [1], it should be
> > lib32/<abi>.
>
> I think the gcc change predates the point where 64-bit glibc was
> upstreamed, so gcc isn't necessarily correct here. But if you are
> making your glibc patches agree with gcc, then certainly we can fix
> binutils to match gcc and glibc.
>
> You forgot to include the patch again though. All I got is the ChangeLog entry.
>
> Jim
>
> --
> You received this message because you are subscribed to the Google Groups "RISC-V Patches" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to patches+unsubscribe@groups.riscv.org.
> To post to this group, send email to patches@groups.riscv.org.
> Visit this group at https://groups.google.com/a/groups.riscv.org/group/patches/.
> To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/patches/CAFyWVaYUpha9RWMfjfzfG9y0u0%2BiPJzLwQLH12qCtGfVWLQR1g%40mail.gmail.com.
> For more options, visit https://groups.google.com/a/groups.riscv.org/d/optout.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-RISC-V-Fix-library-search-path-for-rv32.patch
Type: application/octet-stream
Size: 1759 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20180920/a8ba6ea6/attachment.obj>
More information about the Binutils
mailing list