@@ -130,6 +130,7 @@ rtld-routines = \
dl-compat \
dl-diagnostics \
dl-diagnostics-cpu \
+ dl-diagnostics-cpu-kernel \
dl-diagnostics-kernel \
dl-environ \
dl-hwcaps \
new file mode 100644
@@ -0,0 +1,24 @@
+/* Print CPU/kernel diagnostics data in ld.so. Stub version.
+ Copyright (C) 2023 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
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <https://www.gnu.org/licenses/>. */
+
+#include <dl-diagnostics.h>
+
+void
+_dl_diagnostics_cpu_kernel (void)
+{
+}
@@ -255,6 +255,7 @@ _dl_print_diagnostics (char **environ)
_dl_diagnostics_kernel ();
_dl_diagnostics_cpu ();
+ _dl_diagnostics_cpu_kernel ();
_exit (EXIT_SUCCESS);
}
@@ -43,4 +43,8 @@ void _dl_diagnostics_kernel (void) attribute_hidden;
_dl_print_diagnostics. */
void _dl_diagnostics_cpu (void) attribute_hidden;
+/* Print diagnostics data for the CPU(s), in a kernel-secific fashion.
+ Called from _dl_print_diagnostics. */
+void _dl_diagnostics_cpu_kernel (void) attribute_hidden;
+
#endif /* _DL_DIAGNOSTICS_H */