https://sourceware.org/bugzilla/show_bug.cgi?id=31966
--- Comment #6 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The binutils-2_42-branch branch has been updated by H.J. Lu <h...@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c439c1e1f56e7f9a678051626a9d4bd892257b66 commit c439c1e1f56e7f9a678051626a9d4bd892257b66 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> (cherry picked from commit 7757f66fdbe2a9fa4b51aa7792532fddda4b295c) -- You are receiving this mail because: You are on the CC list for the bug.