Revert "elf: Refuse to dlopen PIE objects [BZ #24323]"
[platform/upstream/glibc.git] / elf / dl-main.h
index 3a5e13c..36816f6 100644 (file)
@@ -1,5 +1,5 @@
 /* Information collection during ld.so startup.
-   Copyright (C) 1995-2021 Free Software Foundation, Inc.
+   Copyright (C) 1995-2024 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -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
@@ -94,8 +94,8 @@ struct dl_main_state
 
   enum rtld_mode mode;
 
-  /* True if any of the debugging options is enabled.  */
-  bool any_debug;
+  /* True if program should be also printed for rtld_mode_trace.  */
+  bool mode_trace_program;
 
   /* True if information about versions has to be printed.  */
   bool version_info;
@@ -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 */