bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/25588] New: Documentation inaccurate for directories searched wh


From: pierre.labastie at neuf dot fr
Subject: [Bug ld/25588] New: Documentation inaccurate for directories searched when a shared library is requiring another
Date: Sun, 23 Feb 2020 08:34:20 +0000

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

            Bug ID: 25588
           Summary: Documentation inaccurate for directories searched when
                    a shared library is requiring another
           Product: binutils
           Version: 2.34
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          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
           shared libraries:

           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
               file.

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.


reply via email to

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