[llvm-dev] [lld] avoid emitting PLT entries for ifuncs

Ed Maste via llvm-dev llvm-dev at lists.llvm.org
Tue Aug 21 11:10:49 PDT 2018


On 21 August 2018 at 12:47, Peter Smith via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Hello Mark,
>
> I'm not the LLD maintainer so this is just a personal opinion. If I
> understand the optimisation correctly, if it used on some program then
> either the loader for the program or the program itself is responsible
> for running the ifunc resolver and resolving the callsites. I think it
> would have to come with a big health warning in at least the help and
> documentation that platform/OS support is needed to run the program.

Yes - in our case we're using it for kernel ifuncs, and the kernel's
early reloc code handles the resolver and relocations. We'll
definitely want a cautionary note in the man page and other
documentation.


More information about the llvm-dev mailing list