From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::222]) by sourceware.org (Postfix) with ESMTPS id 85B6138582AF for ; Wed, 14 Sep 2022 18:08:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 85B6138582AF Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=otheo.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=otheo.eu Received: (Authenticated sender: #01#@otheo.eu) by mail.gandi.net (Postfix) with ESMTPSA id 113C440004 for ; Wed, 14 Sep 2022 18:08:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=otheo.eu; s=gm1; t=1663178921; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ksjlY6uAroh5IplGD6DD9Jov2HF2dVeHLCzp9ApgRhQ=; b=jRgkRyKoWsTMSUIHSFik2Z4krT1nNVtOKm2JLroGfO45RPHirhzTD7UKX3MmAVtiTadYuP H9LtWno8iVFFi4rwgAUXHg8GLGgcQc3YvzMhN3nkHXR3RwkeVKLkuHV8rDOGYH/YAD1YfB oztb6tIuYym6y8BSaHozO0JymuJck5MuPTA/4flFEiIfVozYwc2q/VOaHT1ozM9rB0XXgm 4rYh0FzzXPjKvOrrSkvAzlvhVe6egYnxvnFUcf8PqZHMpmQTUdMfj0OAM4ORUG5YWYc+tf o8rdHmZ5EcMEwOyQA/pHM740Niq2zIQSijn67emapCL2UuyR21nv2F0rO1SFSw== Date: Wed, 14 Sep 2022 20:07:24 +0200 From: Javier Pello To: libc-alpha@sourceware.org Subject: [PATCH 0/6] Remove legacy hwcaps support Message-Id: <20220914200724.8e685fbbaf441c96d19011c6@otheo.eu> In-Reply-To: <87h71i6rfa.fsf@oldenburg.str.redhat.com> References: <20220905200652.d69204581d15c64647da5cd2@otheo.eu> <87h71l9crb.fsf@oldenburg.str.redhat.com> <20220906201207.e7b3d08272af5649754e76b1@otheo.eu> <87h71i6rfa.fsf@oldenburg.str.redhat.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Here is a patch series to remove legacy hwcaps support, which was deprecated in 2.33, from the dynamic loader and ldconfig, as discussed. The first four patches implement the removal and then simplify some code in elf/cache.c. The fifth patch removes _dl_string_hwcap from the code base, as it becomes unused after the other ones, but I am not sure if this is wanted or not. The sixth patch simplifies printing of hwcaps subdirectories in the output of ld.so --help, as using the print_hwcap_1 machinery looks like an overkill after the legacy hwcaps code has gone away. Javier Pello (6): elf: Remove legacy hwcaps support from the dynamic loader elf: Remove legacy hwcaps support from ldconfig elf: Remove hwcap parameter from add_to_cache signature elf: Remove hwcap and bits_hwcap fields from struct cache_entry elf: Remove _dl_string_hwcap elf: Simplify output of hwcap subdirectories in ld.so help elf/cache.c | 42 +--- elf/dl-hwcaps.c | 180 +----------------- elf/dl-usage.c | 75 +------- elf/ldconfig.c | 150 +-------------- sysdeps/alpha/dl-procinfo.h | 2 - sysdeps/csky/dl-procinfo.h | 2 - sysdeps/generic/dl-procinfo.h | 2 - sysdeps/generic/ldconfig.h | 2 +- sysdeps/mips/dl-procinfo.h | 2 - sysdeps/powerpc/dl-procinfo.h | 10 - sysdeps/s390/dl-procinfo.h | 14 -- sysdeps/sparc/dl-procinfo.h | 13 -- sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h | 12 -- sysdeps/unix/sysv/linux/arm/dl-procinfo.h | 12 -- sysdeps/x86/dl-hwcap.h | 14 -- 15 files changed, 30 insertions(+), 502 deletions(-) -- 2.36.0