[PATCH] powerpc: Use FLAG_ELF_LIBC6 for 32-bit known libraries

Florian Weimer fweimer@redhat.com
Fri Dec 3 14:17:28 GMT 2021


* Lucas A. M. Magalhaes:

> In systems with more versions of the known libraries, i.e. on IBM
> Advance Toolchain, ldconfig will order them incorrectly on ld.cache.
>
> The issue only occurs with 32-bit libraries that don't depend on libc or
> libm. That's because process_elf32_file check if the elf depends on one
> of the libraries at known_libs to select the elf flag. For example, as
> libc.so.6 don't depend on itself or on libm it will be flagged as
> FLAG_ELF instead of FLAG_ELF_LIBC6 as expected.
>
> This commit fixes this by checking if a appropriate flag was set by
> process_elf32_file. If not it will search on known_libs and use the flag
> in there.

I would like to defer review of this patch to the POWER maintainers, sorry.
(I just spotted a typo in the first version.)

Thanks,
Florian



More information about the Libc-alpha mailing list