<div dir="auto"><div dir="auto">On Tue, Jul 9, 2024, 7:06 PM H.J. Lu <<a href="mailto:hjl.tools@gmail.com">hjl.tools@gmail.com</a>> wrote:<br></div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto"><br></div><div dir="auto">On Tue, Jul 9, 2024, 5:30 PM Andreas Schwab <<a href="mailto:schwab@suse.de" target="_blank" rel="noreferrer">schwab@suse.de</a>> wrote:<br></div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Jul 09 2024, H.J. Lu wrote:<br>
<br>
> There is no need to add a needed glibc version if the glibc base version<br>
> includes the needed glibc version.<br>
><br>
>       PR ld/31966<br>
>       * elflink.c (elf_link_add_glibc_verneed): Add glibc_minor_base.<br>
>       Skip if the glibc base version includes the needed glibc version.<br>
>       (_bfd_elf_link_add_glibc_version_dependency): Initialize<br>
>       glibc_minor_base to INT_MAX and pass it to<br>
>       elf_link_add_glibc_verneed.<br>
<br>
Why was this not handled by a special version symbol like<br>
GLIBC_ABI_DT_RELR?<br></blockquote></div><div dir="auto"><br></div><div dir="auto">It is because the relevant change was</div><div dir="auto">done in glibc 2.36 well before mark-plt</div><div dir="auto">change was added to binutils.</div></div></blockquote></div><div dir="auto"><br></div><div dir="auto">Fixed on master.  I am backporting it to 2.42 branch.</div><div dir="auto"><br></div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto"><br></div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
-- <br>
Andreas Schwab, SUSE Labs, <a href="mailto:schwab@suse.de" rel="noreferrer noreferrer" target="_blank">schwab@suse.de</a><br>
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7<br>
"And now for something completely different."<br><br><br>
</blockquote></div></div>
</blockquote></div></div>