From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0D375385B835; Fri, 17 Apr 2020 22:38:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0D375385B835 From: "nicholson at endlessm dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/25846] New: Provide method to show loader search directories Date: Fri, 17 Apr 2020 22:38:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nicholson at endlessm dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Apr 2020 22:38:02 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25846 Bug ID: 25846 Summary: Provide method to show loader search directories Product: glibc Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: dynamic-link Assignee: unassigned at sourceware dot org Reporter: nicholson at endlessm dot com Target Milestone: --- Created attachment 12478 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D12478&action=3Ded= it ldconfig: Add --print-dirs option Currently there's no way to know the exact search path that the dynamic loa= der uses. You can parse the entries in /etc/ld.so.conf (following any include statements), but that doesn't include the "standard" builtin directories. A good guess can be made with /lib and /usr/lib, but ultimately it depends on= how glibc was built. This can often miss things like /usr/lib64 or /usr/lib/$(arch_triplet) in common use. There should be a method to obtain the directories that the dynamic loader searches. This would also absolve users from having to parse /etc/ld.so.con= f in an error prone way. This information is particularly useful to tools that d= eal with building or installing libraries such as libtool. The attached patch adds an option to ldconfig to handle this. --=20 You are receiving this mail because: You are on the CC list for the bug.=