[PATCH] abilist.awk: Handle weak unversioned defined symbols
H.J. Lu
hjl.tools@gmail.com
Sun May 3 04:57:43 GMT 2026
On Sun, May 3, 2026 at 12:38 PM Sam James <sam@gentoo.org> wrote:
>
> Sam James <sam@gentoo.org> writes:
>
> > "H.J. Lu" <hjl.tools@gmail.com> writes:
> >
> >> After
> >>
> >> commit f685e3953f9a38a41bbd0a597f9882870cee13d5
> >> Author: H.J. Lu <hjl.tools@gmail.com>
> >> Date: Wed Oct 29 09:49:57 2025 +0800
> >>
> >> elf: Don't set its DT_VERSYM entry for unversioned symbol
> >>
> >> ld no longer assigns version index 1 to unversioned defined symbol.
> >> For libmachuser.so, "objdump --dynamic-syms" reports:
> >>
> >> 0000dd30 w DF .text 000000f8 processor_start
> >>
> >> instead of
> >>
> >> 0000dd30 w DF .text 000000f8 (Base) processor_start
> >>
> >> Also allow NF == 6 for weak unversioned dynamic symbols. This fixes BZ
> >> 33650.
> >>
> >> Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
> >
> > Reviewed-by: Sam James <sam@gentoo.org>
>
> Should we backport it?
We should. It is very safe.
--
H.J.
More information about the Libc-alpha
mailing list