[PATCH v2 2/6] elf: Remove legacy hwcaps support from ldconfig

Florian Weimer fweimer@redhat.com
Thu Sep 22 12:14:02 GMT 2022


* Javier Pello:

> Remove support for the legacy hwcaps subdirectories from ldconfig.
>
> Signed-off-by: Javier Pello <devel@otheo.eu>
> ---
>  elf/ldconfig.c | 149 +++----------------------------------------------
>  1 file changed, 8 insertions(+), 141 deletions(-)
>
> diff --git a/elf/ldconfig.c b/elf/ldconfig.c
> index 6f37f38f..9399c228 100644
> --- a/elf/ldconfig.c
> +++ b/elf/ldconfig.c
> @@ -46,16 +46,6 @@

> @@ -813,9 +719,7 @@ search_dir (const struct dir_entry *entry)
>  	 subdirectory)?  The dynamic linker is also considered as
>  	 shared library.  */
>        if (!_dl_is_dso (direntry->d_name)
> -	  && (direntry->d_type == DT_REG
> -	      || (entry->hwcaps == NULL
> -		  && !is_hwcap_platform (direntry->d_name))))
> +	  && (direntry->d_type == DT_REG || entry->hwcaps == NULL))
>  	continue;
>

The comment needs updating.

Rest looks okay.

Thanks,
Florian



More information about the Libc-alpha mailing list