https://sourceware.org/bugzilla/show_bug.cgi?id=31966
--- Comment #5 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by H.J. Lu <h...@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7757f66fdbe2a9fa4b51aa7792532fddda4b295c commit 7757f66fdbe2a9fa4b51aa7792532fddda4b295c Author: H.J. Lu <hjl.to...@gmail.com> Date: Tue Jul 9 01:48:54 2024 -0700 elf: Add glibc version dependency only if needed There is no need to add a needed glibc version if the glibc base version includes the needed glibc version. PR ld/31966 * elflink.c (elf_link_add_glibc_verneed): Add glibc_minor_base. Skip if the glibc base version includes the needed glibc version. (_bfd_elf_link_add_glibc_version_dependency): Initialize glibc_minor_base to INT_MAX and pass it to elf_link_add_glibc_verneed. Signed-off-by: H.J. Lu <hjl.to...@gmail.com> -- You are receiving this mail because: You are on the CC list for the bug.