bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/22962] [RISCV] add abi subdirectories support to ld


From: david.abdurachmanov at gmail dot com
Subject: [Bug ld/22962] [RISCV] add abi subdirectories support to ld
Date: Fri, 16 Mar 2018 12:25:03 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22962

--- Comment #14 from David Abdurachmanov <david.abdurachmanov at gmail dot com> 
---
Looking at output of ld --verbose

[..]
SEARCH_DIR("=/usr/riscv64-redhat-linux/lib64"); SEARCH_DIR("=/usr/lib64");
SEARCH_DIR("=/usr/local/lib64"); SEARCH_DIR("=/lib64");
SEARCH_DIR("=/usr/riscv64-redhat-linux/lib"); SEARCH_DIR("=/usr/local/lib");
SEARCH_DIR("=/lib"); SEARCH_DIR("=/usr/lib");
[..]

Based on glibc dynamic loader default paths I would expect to see
/usr/lib64/lp64d in this list, but I don't see it.

See: https://sourceware.org/ml/libc-alpha/2018-01/msg00969.html

[..]
+/* If given a path to one of our library directories, adds every library
+   directory via add_dir (), otherwise just adds the giver directory.  On
+   RISC-V, libraries can be found in paths ending in:
+     - /lib64/lp64d
+     - /lib64/lp64
+     - /lib (only ld.so)
+   so this will add all of those paths.
+   
+   According to Joseph Myers:
+       My reasoning for that would be: generic autoconf-configured (etc.)
+       software may only know about using the lib directory, so you want the
+       lib directory to be searched regardless of the ABI - but it's also
+       useful to be able to e.g. list /usr/local/lib in /etc/ld.so.conf for
all
+       architectures and have that automatically imply /usr/local/lib64/lp64d
+       etc. so that libraries can be found that come from software that does
+       use the ABI-specific directories.  */
[..]

Dynamic loader will do some tricks with path ending "lib" and will also incl.
"lib64/<ABI>".

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]