My understanding is that we just have to use the DT_AUDIT and DT_DEPAUDIT strings from the main executable and process them in the same way as LD_AUDIT.
Patch posted: https://sourceware.org/ml/libc-alpha/2019-08/msg00705.html
Rebase posted: https://www.sourceware.org/ml/libc-alpha/2020-02/msg00766.html
Fixed for glibc 2.32.
Author: Florian Weimer <email@example.com>
Date: Mon Feb 17 16:49:40 2020 +0100
elf: Implement DT_AUDIT, DT_DEPAUDIT support [BZ #24943]
binutils ld has supported --audit, --depaudit for a long time,
only support in glibc has been missing.
Reviewed-by: Carlos O'Donell <firstname.lastname@example.org>