[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/25588] New: Documentation inaccurate for directories searched wh
pierre.labastie at neuf dot fr
[Bug ld/25588] New: Documentation inaccurate for directories searched when a shared library is requiring another
Sun, 23 Feb 2020 08:34:20 +0000
Bug ID: 25588
Summary: Documentation inaccurate for directories searched when
a shared library is requiring another
Assignee: unassigned at sourceware dot org
Reporter: pierre.labastie at neuf dot fr
Target Milestone: ---
The documentation (both in man and info form) under -rpath-link=DIR states:
The linker uses the following search paths to locate required
1. Any directories specified by -rpath-link options.
8. For a native linker on an ELF system, if the file
/etc/ld.so.conf exists, the list of directories found in that
Actually, studying the code of ldelf.c, I understand that it is
<sysroot>/<prefix>/etc/ld.so.conf or <sysroot>/etc/ld.so.conf which is used.
Furthermore, if all that fails, it falls back to using the search path of the
ld script (or another search path, I am not sure: it uses the "search_head"
variable, which may be modified by using a pointer to it, so not easy to follow
statically). So I think the doco should have a point:
9. On an elf system, falls back to use the search path of....
You are receiving this mail because:
You are on the CC list for the bug.
|[Prev in Thread]
||[Next in Thread]|
- [Bug ld/25588] New: Documentation inaccurate for directories searched when a shared library is requiring another,
pierre.labastie at neuf dot fr <=