From patchwork Wed Feb 26 19:00:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 2052550 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=d2rfyzCJ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Z33nb6WPKz1yD0 for ; Thu, 27 Feb 2025 06:05:07 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0232E3858CDA for ; Wed, 26 Feb 2025 19:05:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0232E3858CDA Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=d2rfyzCJ X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by sourceware.org (Postfix) with ESMTPS id 2DF873858C98 for ; Wed, 26 Feb 2025 19:03:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2DF873858C98 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2DF873858C98 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1740596606; cv=none; b=CzA5tEn0xhvQWYXvlOmQf/QzsNpos0CSBpCnmCeTa2ImuYP9TQhNJna2xD4tw5w9/y77UVm8Dxaptp1yoX6cDC8G8sZ8xEv/duFfXY7mzbspwpCBMaxScsn/52Y6wCSY9E0x+FL/BLymXFFE9BJhZAR43oB9xqeYC9q/pKYBWZc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1740596606; c=relaxed/simple; bh=lQWpniP3dJ0bToxEffg2dZhHScHSuTIC2B/wpc9/Rm8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=LsfVQoluAvBO5QPjksGu9Rb3pDeSD5It5gN5x+eDihoHs+9/sOQvZsJmiLf0+uzUhcLoMYNLZlCpOKn5LzV8ANaysQoncBycVy+7s8D4lpWOFT0qE8prRgBeQdWZMUa4lmNZCUujPKEm1P6LhJG9lht7CiCXcLDKSua/vGjBV6U= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2DF873858C98 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-220e83d65e5so1726325ad.1 for ; Wed, 26 Feb 2025 11:03:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740596605; x=1741201405; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=n9mCWC3jt4SfjZe+5l7FxGbjYiIXiY09k2+bujGm6TY=; b=d2rfyzCJIPjeOej63e5yIRBrmOtfvak7IZ0Yx72/2vCuBRltWfkNzsiPXaujeEoEia /t47VdfSFOWCbgz9oHj2urWZaxPwBc1nTECQ21Ytg/xG8pO2mHpr8tsbwRNKRXsjCcba GT3WCEpWGMa/y1Op4QZaPHvfUQzX6eQXAZI3DKCRq2jbp7rU9zuHmBfjqcNOqx1U8nFB 4OuFB+44o9M2UR4F8ZL/F8OOfTtVvBt6XvkQ2qUojGAEi0w7VAmAEmVRBpMCuFT5Gs0A MP1oKxO6+kSfTZIabt4tRaiSobx070axg7VBXEDCWgwng7E4mY3Ffcs9N63IZ2hbMlYs 8IfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740596605; x=1741201405; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=n9mCWC3jt4SfjZe+5l7FxGbjYiIXiY09k2+bujGm6TY=; b=iOOs/TKc8gGL7aJZWrcinIfidwUPcHsg4vCuQhUhPcpXqC71Vh7ACYse6d8BOKcTk+ YuAnzW9uQ4adUiOzDDN9Y0V0XM9/GwivqQZq3O/xjK6sQiURABaKTiE5sZqdzpJqkOfZ joomqxdrfNLNvbt0PJIexlpvXF9xyC/XTPA1C9aaVrwlgCimaKZkEwD2Rlmk21a55gTn SYIftUDKSz4OOhEvh3r2WRMP+hCOS4eZLHxgA6UsAG3Msr9wpmR3ydsv6slxzqgpaJUI lUgefQ13NmZX+xQ2314vYbsYFVHy5wBxlU/HYkNiCKpzQc2GCodFmNRdwoHZqJcyzZUm tCrQ== X-Gm-Message-State: AOJu0YxwDkzCl4p6YpDVGAOz+SVc74NLbGZV/1qarajBc9YvOnC8x5+i pOdmLRa3h9C6/kY1HY+OneF29fDQpWsc5zjtbfI/f5aWJ/R+Bxf0KeRrNWsmHTlWfZ2M9CFte7l + X-Gm-Gg: ASbGncvNaJwfURQvNjNGhL5s9NNehRStD8sylgGZ3gXxpTaXfix+Go4oyO+DWSMsyri +0bTyq34B0eOUVzk7LGOg0aWxEHKQghfYLkD6k/md8vZ5fhH+3oOq0hRVwVkRhoax+4PMbf4Srj RVxWjTjgSPdSGmU6GqTI+P9uZ76WlU092G0k6YL0/UinFhSK+4w5scVXChfOKOpzpeN+zv6NkJa oBjqENOTLdGkOLf6lw4lHGduU3lwAEpbkOaLH58pSUiEP1Tbt6+g/Uo0mpD8Sex//nunRaCpli2 CmWBj4e8oFPtmvYaPXdz8SNjIVjYJIQJXr/oNTM= X-Google-Smtp-Source: AGHT+IGc4eWRUgrMC6w3+UZu0x6+La3n2Suvvguptv3HDUjf7+4XbALxNKqQxLxWL1VMOwijwZI7UQ== X-Received: by 2002:a17:902:f68c:b0:21a:8300:b9d5 with SMTP id d9443c01a7336-22320092d46mr76894695ad.23.1740596604685; Wed, 26 Feb 2025 11:03:24 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c3:f704:a0c6:9418:957f:d5bf]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22344c837e2sm6946185ad.139.2025.02.26.11.03.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2025 11:03:24 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org, Stefan Liebler , Peter Bergner , Wilco Dijkstra Subject: [PATCH 5/6] Remove dl-procinfo.h Date: Wed, 26 Feb 2025 16:00:21 -0300 Message-ID: <20250226190308.2163908-6-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250226190308.2163908-1-adhemerval.zanella@linaro.org> References: <20250226190308.2163908-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org 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: Wilco Dijkstra --- elf/dl-cache.c | 1 - elf/dl-diagnostics.c | 1 - elf/dl-hwcaps.c | 1 - elf/dl-support.c | 1 - elf/dl-usage.c | 1 - elf/ldconfig.c | 1 - elf/rtld.c | 1 - scripts/gen-tunables.awk | 1 - sysdeps/generic/dl-procinfo.h | 25 ------------------- sysdeps/i386/fpu/fclrexcpt.c | 1 - sysdeps/i386/fpu/fedisblxcpt.c | 1 - sysdeps/i386/fpu/feenablxcpt.c | 1 - sysdeps/i386/fpu/fegetenv.c | 1 - sysdeps/i386/fpu/fegetmode.c | 1 - sysdeps/i386/fpu/feholdexcpt.c | 1 - sysdeps/i386/fpu/fesetenv.c | 1 - sysdeps/i386/fpu/fesetmode.c | 1 - sysdeps/i386/fpu/fesetround.c | 1 - sysdeps/i386/fpu/feupdateenv.c | 1 - sysdeps/i386/fpu/fgetexcptflg.c | 1 - sysdeps/i386/fpu/ftestexcept.c | 1 - sysdeps/i386/setfpucw.c | 1 - sysdeps/mach/hurd/dl-sysdep.c | 1 - sysdeps/powerpc/fpu/math_private.h | 1 - sysdeps/powerpc/hwcapinfo.c | 1 - sysdeps/unix/sysv/linux/dl-sysdep.c | 5 ---- .../unix/sysv/linux/powerpc/elision-conf.c | 1 - sysdeps/x86/dl-hwcap.h | 3 --- 28 files changed, 58 deletions(-) delete mode 100644 sysdeps/generic/dl-procinfo.h diff --git a/elf/dl-cache.c b/elf/dl-cache.c index 300aa1b6dd..f9ca40de3f 100644 --- a/elf/dl-cache.c +++ b/elf/dl-cache.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include <_itoa.h> #include diff --git a/elf/dl-diagnostics.c b/elf/dl-diagnostics.c index fb2cfbeeb8..abb644314d 100644 --- a/elf/dl-diagnostics.c +++ b/elf/dl-diagnostics.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include "trusted-dirs.h" diff --git a/elf/dl-hwcaps.c b/elf/dl-hwcaps.c index e3d24fba1b..66060d7bb5 100644 --- a/elf/dl-hwcaps.c +++ b/elf/dl-hwcaps.c @@ -23,7 +23,6 @@ #include #include -#include #include /* 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 a7d5a5e8ab..c7860f327a 100644 --- a/elf/dl-support.c +++ b/elf/dl-support.c @@ -35,7 +35,6 @@ #include #include #include -#include #include #include #include diff --git a/elf/dl-usage.c b/elf/dl-usage.c index c6d13ac2ee..31b27e5ea6 100644 --- a/elf/dl-usage.c +++ b/elf/dl-usage.c @@ -22,7 +22,6 @@ #include #include "version.h" -#include #include void diff --git a/elf/ldconfig.c b/elf/ldconfig.c index 1432187e9b..39b154c72c 100644 --- a/elf/ldconfig.c +++ b/elf/ldconfig.c @@ -45,7 +45,6 @@ #include #include -#include #ifndef LD_SO_CONF # define LD_SO_CONF SYSCONFDIR "/ld.so.conf" diff --git a/elf/rtld.c b/elf/rtld.c index 115f1da37f..00b25c1a73 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -35,7 +35,6 @@ #include #include #include -#include #include #include #include diff --git a/scripts/gen-tunables.awk b/scripts/gen-tunables.awk index d9f326b63b..5d34075c16 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 \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 057a4ae362..0000000000 --- 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 - . */ - -#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 2254c49d60..f7a2ed2be1 100644 --- a/sysdeps/i386/fpu/fclrexcpt.c +++ b/sysdeps/i386/fpu/fclrexcpt.c @@ -19,7 +19,6 @@ #include #include #include -#include int __feclearexcept (int excepts) diff --git a/sysdeps/i386/fpu/fedisblxcpt.c b/sysdeps/i386/fpu/fedisblxcpt.c index 305758a267..b23fd8e869 100644 --- a/sysdeps/i386/fpu/fedisblxcpt.c +++ b/sysdeps/i386/fpu/fedisblxcpt.c @@ -19,7 +19,6 @@ #include #include #include -#include int fedisableexcept (int excepts) diff --git a/sysdeps/i386/fpu/feenablxcpt.c b/sysdeps/i386/fpu/feenablxcpt.c index e24d9d5f98..bc4a4ce32f 100644 --- a/sysdeps/i386/fpu/feenablxcpt.c +++ b/sysdeps/i386/fpu/feenablxcpt.c @@ -19,7 +19,6 @@ #include #include #include -#include int feenableexcept (int excepts) diff --git a/sysdeps/i386/fpu/fegetenv.c b/sysdeps/i386/fpu/fegetenv.c index 3c58ea6ef1..0d2b87db93 100644 --- a/sysdeps/i386/fpu/fegetenv.c +++ b/sysdeps/i386/fpu/fegetenv.c @@ -19,7 +19,6 @@ #include #include #include -#include int __fegetenv (fenv_t *envp) diff --git a/sysdeps/i386/fpu/fegetmode.c b/sysdeps/i386/fpu/fegetmode.c index ff3f98834f..41275e1036 100644 --- a/sysdeps/i386/fpu/fegetmode.c +++ b/sysdeps/i386/fpu/fegetmode.c @@ -20,7 +20,6 @@ #include #include #include -#include int fegetmode (femode_t *modep) diff --git a/sysdeps/i386/fpu/feholdexcpt.c b/sysdeps/i386/fpu/feholdexcpt.c index 3b689b97c9..a323a04f27 100644 --- a/sysdeps/i386/fpu/feholdexcpt.c +++ b/sysdeps/i386/fpu/feholdexcpt.c @@ -19,7 +19,6 @@ #include #include #include -#include int __feholdexcept (fenv_t *envp) diff --git a/sysdeps/i386/fpu/fesetenv.c b/sysdeps/i386/fpu/fesetenv.c index 06d78484e9..66d7002edd 100644 --- a/sysdeps/i386/fpu/fesetenv.c +++ b/sysdeps/i386/fpu/fesetenv.c @@ -21,7 +21,6 @@ #include #include #include -#include /* All exceptions, including the x86-specific "denormal operand" diff --git a/sysdeps/i386/fpu/fesetmode.c b/sysdeps/i386/fpu/fesetmode.c index 33e85ecfa6..eab0a5d683 100644 --- a/sysdeps/i386/fpu/fesetmode.c +++ b/sysdeps/i386/fpu/fesetmode.c @@ -20,7 +20,6 @@ #include #include #include -#include /* All exceptions, including the x86-specific "denormal operand" exception. */ diff --git a/sysdeps/i386/fpu/fesetround.c b/sysdeps/i386/fpu/fesetround.c index ef6fc3af1b..ea1f9096b5 100644 --- a/sysdeps/i386/fpu/fesetround.c +++ b/sysdeps/i386/fpu/fesetround.c @@ -19,7 +19,6 @@ #include #include #include -#include int __fesetround (int round) diff --git a/sysdeps/i386/fpu/feupdateenv.c b/sysdeps/i386/fpu/feupdateenv.c index 38ae5f4993..89b000953a 100644 --- a/sysdeps/i386/fpu/feupdateenv.c +++ b/sysdeps/i386/fpu/feupdateenv.c @@ -18,7 +18,6 @@ #include #include -#include #include int diff --git a/sysdeps/i386/fpu/fgetexcptflg.c b/sysdeps/i386/fpu/fgetexcptflg.c index f4c7765beb..be181af162 100644 --- a/sysdeps/i386/fpu/fgetexcptflg.c +++ b/sysdeps/i386/fpu/fgetexcptflg.c @@ -19,7 +19,6 @@ #include #include #include -#include int diff --git a/sysdeps/i386/fpu/ftestexcept.c b/sysdeps/i386/fpu/ftestexcept.c index 25cb027200..2d41ba22ac 100644 --- a/sysdeps/i386/fpu/ftestexcept.c +++ b/sysdeps/i386/fpu/ftestexcept.c @@ -18,7 +18,6 @@ #include #include -#include #include int diff --git a/sysdeps/i386/setfpucw.c b/sysdeps/i386/setfpucw.c index df8fffc6f2..1edfd5be0a 100644 --- a/sysdeps/i386/setfpucw.c +++ b/sysdeps/i386/setfpucw.c @@ -21,7 +21,6 @@ #include #include #include -#include void __setfpucw (fpu_control_t set) diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c index 173499c4c1..e629492583 100644 --- a/sysdeps/mach/hurd/dl-sysdep.c +++ b/sysdeps/mach/hurd/dl-sysdep.c @@ -43,7 +43,6 @@ #include #include -#include #include #include diff --git a/sysdeps/powerpc/fpu/math_private.h b/sysdeps/powerpc/fpu/math_private.h index 7065d276c0..a87ed62c42 100644 --- a/sysdeps/powerpc/fpu/math_private.h +++ b/sysdeps/powerpc/fpu/math_private.h @@ -21,7 +21,6 @@ #include #include -#include #include_next diff --git a/sysdeps/powerpc/hwcapinfo.c b/sysdeps/powerpc/hwcapinfo.c index ca9277bb1e..72e65ac7a0 100644 --- a/sysdeps/powerpc/hwcapinfo.c +++ b/sysdeps/powerpc/hwcapinfo.c @@ -18,7 +18,6 @@ #include #include -#include #include 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 b746ac2644..544902e6d2 100644 --- a/sysdeps/unix/sysv/linux/dl-sysdep.c +++ b/sysdeps/unix/sysv/linux/dl-sysdep.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include @@ -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 fe98c6ba71..451897bd3d 100644 --- a/sysdeps/unix/sysv/linux/powerpc/elision-conf.c +++ b/sysdeps/unix/sysv/linux/powerpc/elision-conf.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #define TUNABLE_NAMESPACE elision diff --git a/sysdeps/x86/dl-hwcap.h b/sysdeps/x86/dl-hwcap.h index 2384897e60..d48240843e 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 */