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

Frederic Berat fberat@redhat.com
Wed Feb 25 13:24:57 GMT 2026


On Tue, Feb 24, 2026 at 9:42 PM Adhemerval Zanella Netto <
adhemerval.zanella@linaro.org> wrote:

>
>
> 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].
>

Yes, this one and the recursive one too. I need to move the tests-special
addition before the inclusion of Rules.


>
> [1]
> https://patchwork.sourceware.org/project/glibc/patch/20260224102410.364425-3-fberat@redhat.com/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20260225/517701bf/attachment.htm>


More information about the Libc-alpha mailing list