[RFC PATCH] riscv: Add support for STT_GNU_IFUNC symbols

Vincent Chen vincent.chen@sifive.com
Fri Jul 17 02:53:36 GMT 2020


On Fri, Jul 10, 2020 at 12:40 AM Joseph Myers <joseph@codesourcery.com> wrote:
>
> On Thu, 9 Jul 2020, Vincent Chen wrote:
>
> > This patch adds the support for STT_GNU_IFUNC symbols to riscv ports. The
> > Binutils' IFUNC patches are under reviewing and can be found in
> > https://sourceware.org/pipermail/binutils/2020-July/112186.html.
> >
> > Any suggestions and feedback are welcome.
>
> We have the libc-abis mechanism that's supposed to ensure binaries using
> newer ELF features don't run on older glibc versions not implementing
> those features.  So in theory an architecture newly getting IFUNC support
> should get a libc-abis entry (at the end of the file, not with the other
> IFUNC entries there).  But given the various missing or broken pieces of
> this mechanism (EI_ABIVERSION not set in the static linker for most
> architectures, possibly not checked by glibc in some cases), that probably
> doesn't matter much.
>
> https://sourceware.org/legacy-ml/libc-ports/2010-03/msg00044.html
> https://sourceware.org/legacy-ml/libc-alpha/2010-04/msg00016.html
> https://sourceware.org/legacy-ml/libc-alpha/2014-01/msg00375.html
>

Thanks for your reminder. I will add an entry for riscv toolchain at
the end of libc-abis


More information about the Libc-alpha mailing list