Bug 23668 - ldconfig: Default to the new format for ld.so.cache
Summary: ldconfig: Default to the new format for ld.so.cache
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: dynamic-link (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: 2.32
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-16 11:34 UTC by Josh Triplett
Modified: 2020-05-19 13:06 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
[PATCH] Default to the new format for ld.so.cache (1.44 KB, patch)
2018-09-16 11:34 UTC, Josh Triplett
Details | Diff
[PATCH] Default to the new format for ld.so.cache (1.31 KB, patch)
2018-09-19 01:50 UTC, Josh Triplett
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Triplett 2018-09-16 11:34:45 UTC
Created attachment 11250 [details]
[PATCH] Default to the new format for ld.so.cache

glibc has supported the new ld.so.cache format for 18+ years, and the old/compat versions date back to around the libc5 era. Switching to the new format makes the cache smaller, and slightly faster to load.
Comment 1 Josh Triplett 2018-09-19 01:50:15 UTC
Created attachment 11260 [details]
[PATCH] Default to the new format for ld.so.cache

(updated version with changelog in commit message only, and minor formatting fixes)
Comment 2 Florian Weimer 2020-05-19 13:06:30 UTC
Fixed for glibc 2.32 with:

commit cad64f778aced84efdaa04ae64f8737b86f063ab
Author: Josh Triplett <josh@joshtriplett.org>
Date:   Tue May 19 14:41:48 2020 +0200

    ldconfig: Default to the new format for ld.so.cache
    
    glibc has supported this format for close to 20 years.