[PATCH 5/5] ld.so.8: Describe the --list-diagnostics loader option

Adhemerval Zanella
2023-10-18T17:31:45Z

It was added on glibc 2.33 as a way to print system diagnostic
information in a machine-readable format.

Signed-off-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
---
man8/ld.so.8 | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/man8/ld.so.8 b/man8/ld.so.8
index 0e742cddd..66f14aef4 100644
--- a/man8/ld.so.8
+++ b/man8/ld.so.8
@@ -246,6 +246,13 @@ are delimited by colons or spaces.
.B \-\-list
List all dependencies and how they are resolved.
.TP
+.BR \-\-list\-diagnostics " (since glibc 2.33)
+Print system diagnostic information in a machine-readable format, such as some
+internal loader variables, the auxiliary vector (see
+.BR getauxval (3)),
+and the environment variables. On some architecture, the command might print
+additional information (like the cpu features used in GNU indirect function
+selection on x86).
.BR \-\-list\-tunables " (since glibc 2.33)"
Print the names and values of all tunables,
along with the minimum and maximum allowed values.
--
2.34.1