diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-02-26 17:11:44 +0000 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-03-05 11:22:09 -0300 |
commit | 1d60b9dfdab411a0cd8856adffc5124c86cde5e1 (patch) | |
tree | 763675c0d14861a77744ada76f2d79d21cf4f105 | |
parent | 2fd580ea465d1a74214546d59714f662e74b3022 (diff) | |
download | glibc-1d60b9dfdab411a0cd8856adffc5124c86cde5e1.zip glibc-1d60b9dfdab411a0cd8856adffc5124c86cde5e1.tar.gz glibc-1d60b9dfdab411a0cd8856adffc5124c86cde5e1.tar.bz2 |
Remove dl-procinfo.h
powerpc was the only architecture with arch-specific hooks for
LD_SHOW_AUXV, and with the information moved to ld diagnostics there
is no need to keep the _dl_procinfo hook.
Checked with a build for all affected ABIs.
Reviewed-by: Peter Bergner <bergner@linux.ibm.com>
28 files changed, 0 insertions, 58 deletions
diff --git a/elf/dl-cache.c b/elf/dl-cache.c index 300aa1b..f9ca40d 100644 --- a/elf/dl-cache.c +++ b/elf/dl-cache.c @@ -21,7 +21,6 @@ #include <ldsodefs.h> #include <sys/mman.h> #include <dl-cache.h> -#include <dl-procinfo.h> #include <stdint.h> #include <_itoa.h> #include <dl-hwcaps.h> diff --git a/elf/dl-diagnostics.c b/elf/dl-diagnostics.c index fb2cfbe..abb6443 100644 --- a/elf/dl-diagnostics.c +++ b/elf/dl-diagnostics.c @@ -24,7 +24,6 @@ #include <dl-diagnostics.h> #include <dl-hwcaps.h> #include <dl-main.h> -#include <dl-procinfo.h> #include <dl-sysdep.h> #include <ldsodefs.h> #include "trusted-dirs.h" diff --git a/elf/dl-hwcaps.c b/elf/dl-hwcaps.c index e3d24fb..66060d7 100644 --- a/elf/dl-hwcaps.c +++ b/elf/dl-hwcaps.c @@ -23,7 +23,6 @@ #include <unistd.h> #include <ldsodefs.h> -#include <dl-procinfo.h> #include <dl-hwcaps.h> /* This is the result of counting the substrings in a colon-separated diff --git a/elf/dl-support.c b/elf/dl-support.c index a7d5a5e..c7860f3 100644 --- a/elf/dl-support.c +++ b/elf/dl-support.c @@ -35,7 +35,6 @@ #include <dl-machine.h> #include <libc-lock.h> #include <dl-cache.h> -#include <dl-procinfo.h> #include <unsecvars.h> #include <hp-timing.h> #include <stackinfo.h> diff --git a/elf/dl-usage.c b/elf/dl-usage.c index c6d13ac..31b27e5 100644 --- a/elf/dl-usage.c +++ b/elf/dl-usage.c @@ -22,7 +22,6 @@ #include <unistd.h> #include "version.h" -#include <dl-procinfo.h> #include <dl-hwcaps.h> void diff --git a/elf/ldconfig.c b/elf/ldconfig.c index 1432187..39b154c 100644 --- a/elf/ldconfig.c +++ b/elf/ldconfig.c @@ -45,7 +45,6 @@ #include <dl-hwcaps.h> #include <dl-is_dso.h> -#include <dl-procinfo.h> #ifndef LD_SO_CONF # define LD_SO_CONF SYSCONFDIR "/ld.so.conf" @@ -35,7 +35,6 @@ #include <unsecvars.h> #include <dl-cache.h> #include <dl-osinfo.h> -#include <dl-procinfo.h> #include <dl-prop.h> #include <dl-vdso.h> #include <dl-vdso-setup.h> diff --git a/scripts/gen-tunables.awk b/scripts/gen-tunables.awk index d9f326b..5d34075 100644 --- a/scripts/gen-tunables.awk +++ b/scripts/gen-tunables.awk @@ -141,7 +141,6 @@ END { print "# error \"Do not include this file directly.\"" print "# error \"Include tunables.h instead.\"" print "#endif" - print "#include <dl-procinfo.h>\n" # Now, the enum names print "\ntypedef enum" diff --git a/sysdeps/generic/dl-procinfo.h b/sysdeps/generic/dl-procinfo.h deleted file mode 100644 index 057a4ae..0000000 --- a/sysdeps/generic/dl-procinfo.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Stub version of processor capability information handling macros. - Copyright (C) 1998-2025 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/>. */ - -#ifndef _DL_PROCINFO_H -#define _DL_PROCINFO_H 1 - -/* We cannot provide a general printing function. */ -#define _dl_procinfo(type, word) -1 - -#endif /* dl-procinfo.h */ diff --git a/sysdeps/i386/fpu/fclrexcpt.c b/sysdeps/i386/fpu/fclrexcpt.c index 2254c49..f7a2ed2 100644 --- a/sysdeps/i386/fpu/fclrexcpt.c +++ b/sysdeps/i386/fpu/fclrexcpt.c @@ -19,7 +19,6 @@ #include <fenv.h> #include <unistd.h> #include <ldsodefs.h> -#include <dl-procinfo.h> int __feclearexcept (int excepts) diff --git a/sysdeps/i386/fpu/fedisblxcpt.c b/sysdeps/i386/fpu/fedisblxcpt.c index 305758a..b23fd8e 100644 --- a/sysdeps/i386/fpu/fedisblxcpt.c +++ b/sysdeps/i386/fpu/fedisblxcpt.c @@ -19,7 +19,6 @@ #include <fenv.h> #include <unistd.h> #include <ldsodefs.h> -#include <dl-procinfo.h> int fedisableexcept (int excepts) diff --git a/sysdeps/i386/fpu/feenablxcpt.c b/sysdeps/i386/fpu/feenablxcpt.c index e24d9d5..bc4a4ce 100644 --- a/sysdeps/i386/fpu/feenablxcpt.c +++ b/sysdeps/i386/fpu/feenablxcpt.c @@ -19,7 +19,6 @@ #include <fenv.h> #include <unistd.h> #include <ldsodefs.h> -#include <dl-procinfo.h> int feenableexcept (int excepts) diff --git a/sysdeps/i386/fpu/fegetenv.c b/sysdeps/i386/fpu/fegetenv.c index 3c58ea6..0d2b87d 100644 --- a/sysdeps/i386/fpu/fegetenv.c +++ b/sysdeps/i386/fpu/fegetenv.c @@ -19,7 +19,6 @@ #include <fenv.h> #include <unistd.h> #include <ldsodefs.h> -#include <dl-procinfo.h> int __fegetenv (fenv_t *envp) diff --git a/sysdeps/i386/fpu/fegetmode.c b/sysdeps/i386/fpu/fegetmode.c index ff3f988..41275e1 100644 --- a/sysdeps/i386/fpu/fegetmode.c +++ b/sysdeps/i386/fpu/fegetmode.c @@ -20,7 +20,6 @@ #include <fpu_control.h> #include <unistd.h> #include <ldsodefs.h> -#include <dl-procinfo.h> int fegetmode (femode_t *modep) diff --git a/sysdeps/i386/fpu/feholdexcpt.c b/sysdeps/i386/fpu/feholdexcpt.c index 3b689b9..a323a04 100644 --- a/sysdeps/i386/fpu/feholdexcpt.c +++ b/sysdeps/i386/fpu/feholdexcpt.c @@ -19,7 +19,6 @@ #include <fenv.h> #include <unistd.h> #include <ldsodefs.h> -#include <dl-procinfo.h> int __feholdexcept (fenv_t *envp) diff --git a/sysdeps/i386/fpu/fesetenv.c b/sysdeps/i386/fpu/fesetenv.c index 06d7848..66d7002 100644 --- a/sysdeps/i386/fpu/fesetenv.c +++ b/sysdeps/i386/fpu/fesetenv.c @@ -21,7 +21,6 @@ #include <assert.h> #include <unistd.h> #include <ldsodefs.h> -#include <dl-procinfo.h> /* All exceptions, including the x86-specific "denormal operand" diff --git a/sysdeps/i386/fpu/fesetmode.c b/sysdeps/i386/fpu/fesetmode.c index 33e85ec..eab0a5d 100644 --- a/sysdeps/i386/fpu/fesetmode.c +++ b/sysdeps/i386/fpu/fesetmode.c @@ -20,7 +20,6 @@ #include <fpu_control.h> #include <unistd.h> #include <ldsodefs.h> -#include <dl-procinfo.h> /* All exceptions, including the x86-specific "denormal operand" exception. */ diff --git a/sysdeps/i386/fpu/fesetround.c b/sysdeps/i386/fpu/fesetround.c index ef6fc3a..ea1f909 100644 --- a/sysdeps/i386/fpu/fesetround.c +++ b/sysdeps/i386/fpu/fesetround.c @@ -19,7 +19,6 @@ #include <fenv.h> #include <unistd.h> #include <ldsodefs.h> -#include <dl-procinfo.h> int __fesetround (int round) diff --git a/sysdeps/i386/fpu/feupdateenv.c b/sysdeps/i386/fpu/feupdateenv.c index 38ae5f4..89b0009 100644 --- a/sysdeps/i386/fpu/feupdateenv.c +++ b/sysdeps/i386/fpu/feupdateenv.c @@ -18,7 +18,6 @@ #include <fenv.h> #include <unistd.h> -#include <dl-procinfo.h> #include <ldsodefs.h> int diff --git a/sysdeps/i386/fpu/fgetexcptflg.c b/sysdeps/i386/fpu/fgetexcptflg.c index f4c7765..be181af 100644 --- a/sysdeps/i386/fpu/fgetexcptflg.c +++ b/sysdeps/i386/fpu/fgetexcptflg.c @@ -19,7 +19,6 @@ #include <fenv.h> #include <unistd.h> #include <ldsodefs.h> -#include <dl-procinfo.h> int diff --git a/sysdeps/i386/fpu/ftestexcept.c b/sysdeps/i386/fpu/ftestexcept.c index 25cb027..2d41ba2 100644 --- a/sysdeps/i386/fpu/ftestexcept.c +++ b/sysdeps/i386/fpu/ftestexcept.c @@ -18,7 +18,6 @@ #include <fenv.h> #include <unistd.h> -#include <dl-procinfo.h> #include <ldsodefs.h> int diff --git a/sysdeps/i386/setfpucw.c b/sysdeps/i386/setfpucw.c index df8fffc..1edfd5b 100644 --- a/sysdeps/i386/setfpucw.c +++ b/sysdeps/i386/setfpucw.c @@ -21,7 +21,6 @@ #include <fenv.h> #include <unistd.h> #include <ldsodefs.h> -#include <dl-procinfo.h> void __setfpucw (fpu_control_t set) diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c index 173499c..e629492 100644 --- a/sysdeps/mach/hurd/dl-sysdep.c +++ b/sysdeps/mach/hurd/dl-sysdep.c @@ -43,7 +43,6 @@ #include <entry.h> #include <dl-machine.h> -#include <dl-procinfo.h> #include <dl-tunables.h> #include <not-errno.h> diff --git a/sysdeps/powerpc/fpu/math_private.h b/sysdeps/powerpc/fpu/math_private.h index 7065d27..a87ed62 100644 --- a/sysdeps/powerpc/fpu/math_private.h +++ b/sysdeps/powerpc/fpu/math_private.h @@ -21,7 +21,6 @@ #include <sysdep.h> #include <ldsodefs.h> -#include <dl-procinfo.h> #include_next <math_private.h> diff --git a/sysdeps/powerpc/hwcapinfo.c b/sysdeps/powerpc/hwcapinfo.c index ca9277b..72e65ac 100644 --- a/sysdeps/powerpc/hwcapinfo.c +++ b/sysdeps/powerpc/hwcapinfo.c @@ -18,7 +18,6 @@ #include <unistd.h> #include <shlib-compat.h> -#include <dl-procinfo.h> #include <cpu-features.c> tcbhead_t __tcb __attribute__ ((visibility ("hidden"))); diff --git a/sysdeps/unix/sysv/linux/dl-sysdep.c b/sysdeps/unix/sysv/linux/dl-sysdep.c index b746ac2..544902e 100644 --- a/sysdeps/unix/sysv/linux/dl-sysdep.c +++ b/sysdeps/unix/sysv/linux/dl-sysdep.c @@ -21,7 +21,6 @@ #include <dl-auxv.h> #include <dl-osinfo.h> #include <dl-parse_auxv.h> -#include <dl-procinfo.h> #include <dl-tunables.h> #include <elf.h> #include <errno.h> @@ -222,10 +221,6 @@ _dl_show_auxv (void) assert (AT_NULL == 0); assert (AT_IGNORE == 1); - /* Some entries are handled in a special way per platform. */ - if (_dl_procinfo (av->a_type, av->a_un.a_val) == 0) - continue; - if (idx < sizeof (auxvars) / sizeof (auxvars[0]) && auxvars[idx].form != unknown) { diff --git a/sysdeps/unix/sysv/linux/powerpc/elision-conf.c b/sysdeps/unix/sysv/linux/powerpc/elision-conf.c index fe98c6b..451897b 100644 --- a/sysdeps/unix/sysv/linux/powerpc/elision-conf.c +++ b/sysdeps/unix/sysv/linux/powerpc/elision-conf.c @@ -20,7 +20,6 @@ #include <pthreadP.h> #include <elision-conf.h> #include <unistd.h> -#include <dl-procinfo.h> #include <ldsodefs.h> #define TUNABLE_NAMESPACE elision diff --git a/sysdeps/x86/dl-hwcap.h b/sysdeps/x86/dl-hwcap.h index 2384897..d482408 100644 --- a/sysdeps/x86/dl-hwcap.h +++ b/sysdeps/x86/dl-hwcap.h @@ -25,7 +25,4 @@ enum HWCAP_X86_AVX512_1 = 1 << 2 }; -/* We cannot provide a general printing function. */ -#define _dl_procinfo(type, word) -1 - #endif /* dl-hwcap.h */ |