[patch v4 1/4] Add system-wide tunables: ldconfig part

DJ Delorie dj@redhat.com
Wed Jun 18 00:32:52 GMT 2025


Adhemerval Zanella Netto <adhemerval.zanella@linaro.org> writes:
> Checking how tunables.conf and ld.so.cache plays together I found some
> cases we will need to define which is the expected semantic; since they
> differ from that ld.so does:

IIRC the idea was "the system-wide tunables are a source and cache for
tunables, but not authoritative" I.e. parsing and validating are up to
the application using them, just like the environent variable.  The
cache even stores both the parsed and raw values for the tunables, in
case the internal tunable IDs don't match from cache to app.

>  1. And invalid tunable, i.e 'glibc.invalid.tunable=0', prints which
>     seems an error:
>
>     $ ./elf/ldconfig -r /tmp/ldconfig
>     top 0 name `glibc.invalid.tunable' (-1) value `0'

Likely a leftover debug statement.  I tend to put a lot of those in when
writing code.



More information about the Libc-alpha mailing list