[PATCH v4 2/2] x86: Update _dl_tlsdesc_dynamic to preserve caller-saved registers

H.J. Lu hjl.tools@gmail.com
Fri Feb 16 13:24:56 GMT 2024


On Fri, Feb 16, 2024 at 5:06 AM Florian Weimer <fweimer@redhat.com> wrote:
>
> * H. J. Lu:
>
> >> > I thought that unversioned symbols interpose all versioned symbols.  Has
> >> > this changed in the dynamic linker?
> >>
> >> Only for this case.
> >>
> >
> > I was wrong.  Version isn't needed.  Will fix it.
>
> Ahh.  You don't need malloc-for-test.so, either.  I think you could use
> -Wl,-E (--export-dynamic) to trigger interposition from the main
> program.

No need for --export-dynamic since malloc is exported from libc.so.

> It would make sense to check using a counter that the interposed malloc
> is in fact called.

Will do.

> Thanks,
> Florian
>

Thanks.

-- 
H.J.


More information about the Libc-alpha mailing list