[PATCH v5 2/2] feat(rtld): Allow LD_DEBUG category exclusion

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Tue Feb 24 20:42:00 GMT 2026



On 24/02/26 07:24, Frédéric Bérat wrote:
> Adds support for excluding specific categories from `LD_DEBUG` output.
> 
> The `LD_DEBUG` environment variable now accepts category names prefixed
> with a dash (`-`) to disable their debugging output. This allows users
> to enable broad categories (e.g., `all`) while suppressing verbose or
> irrelevant information from specific sub-categories (e.g., `-tls`).
> 
> The `process_dl_debug` function in `rtld.c` has been updated to parse
> these exclusion options and unset the corresponding bits in
> `GLRO(dl_debug_mask)`. The `LD_DEBUG=help` output has also been updated
> to document this new functionality. A new test `tst-dl-debug-exclude.sh`
> is added to verify the correct behavior of category exclusion.
> ---
> v5: No changes since v4.

Unfortunately this seems to fail on Linaro/CI for aarch64 [1].

[1] https://patchwork.sourceware.org/project/glibc/patch/20260224102410.364425-3-fberat@redhat.com/ 


More information about the Libc-alpha mailing list