From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8D3383857012; Fri, 4 Dec 2020 08:52:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D3383857012 From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/25938] ld.so.cache should store meaning of hwcap mask bits Date: Fri, 04 Dec 2020 08:52:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: fweimer at redhat dot com X-Bugzilla-Target-Milestone: 2.33 X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: target_milestone cc bug_status resolution assigned_to Message-ID: In-Reply-To: References: 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, 04 Dec 2020 08:52:39 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25938 Florian Weimer changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.33 CC| |fweimer at redhat dot com Status|NEW |RESOLVED Resolution|--- |FIXED Assignee|unassigned at sourceware dot org |fweimer at redhat d= ot com --- Comment #1 from Florian Weimer --- More or less fixed in glibc 2.33 by a new mechanism: commit b44ac4f4c7a8bbe5eaa2701aa9452eaf2c96e1dd Author: Florian Weimer Date: Fri Dec 4 09:13:43 2020 +0100 elf: Process glibc-hwcaps subdirectories in ldconfig Libraries from these subdirectories are added to the cache with a special hwcap bit DL_CACHE_HWCAP_EXTENSION, so that they are ignored by older dynamic loaders. Reviewed-by: Adhemerval Zanella commit 600d9e0c87940da9b0fdeff492bf888df852d40c Author: Florian Weimer Date: Fri Dec 4 09:13:43 2020 +0100 elf: Add glibc-hwcaps subdirectory support to ld.so cache processing This recognizes the DL_CACHE_HWCAP_EXTENSION flag in cache entries, and picks the supported cache entry with the highest priority. The elf/tst-glibc-hwcaps-prepend-cache test documents a non-desired aspect of the current cache implementation: If the cache selects a DSO that does not exist on disk, _dl_map_object falls back to open_path, which may or may not find an alternative implementation. This is an existing limitation that also applies to the legacy hwcaps processing for ld.so.cache. Reviewed-by: Adhemerval Zanella --=20 You are receiving this mail because: You are on the CC list for the bug.=