about summary refs log tree commit diff
path: root/elf/dl-main.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-03-02 14:38:42 +0100
committerFlorian Weimer <fweimer@redhat.com>2021-03-02 14:39:24 +0100
commit851f32cf7bf7067f73b991610778915edd57d7b4 (patch)
tree872288e8f663ef64124423379cce7889ed077ae0 /elf/dl-main.h
parent40d055a2ddc86b76d4887e548ed20e40761102b1 (diff)
downloadglibc-851f32cf7bf7067f73b991610778915edd57d7b4.tar.gz
glibc-851f32cf7bf7067f73b991610778915edd57d7b4.tar.xz
glibc-851f32cf7bf7067f73b991610778915edd57d7b4.zip
ld.so: Implement the --list-diagnostics option
Diffstat (limited to 'elf/dl-main.h')
-rw-r--r--elf/dl-main.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/elf/dl-main.h b/elf/dl-main.h
index 3a5e13c739..d3820e0063 100644
--- a/elf/dl-main.h
+++ b/elf/dl-main.h
@@ -63,7 +63,7 @@ struct audit_list
 enum rtld_mode
   {
     rtld_mode_normal, rtld_mode_list, rtld_mode_verify, rtld_mode_trace,
-    rtld_mode_list_tunables, rtld_mode_help,
+    rtld_mode_list_tunables, rtld_mode_list_diagnostics, rtld_mode_help,
   };
 
 /* Aggregated state information extracted from environment variables
@@ -121,4 +121,7 @@ _Noreturn void _dl_version (void) attribute_hidden;
 _Noreturn void _dl_help (const char *argv0, struct dl_main_state *state)
   attribute_hidden;
 
+/* Print a diagnostics dump.  */
+_Noreturn void _dl_print_diagnostics (char **environ) attribute_hidden;
+
 #endif /* _DL_MAIN */