[PATCH] D19517: ELF: Treat IFunc definitions in DSOs as functions.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 26 08:12:00 PDT 2016


Interesting. I assume the dynamic linker then does all the work of
calling the resolver function and setting the got entry.

> ===================================================================
> --- /dev/null
> +++ test/ELF/Inputs/gnu-ifunc-gotpcrel.s
> @@ -0,0 +1,5 @@
> +.type foo STT_GNU_IFUNC
> +.globl foo
> +.type foo, @function

Why do you need two .type directives?

LGTM with that changed.

Cheers,
Rafael


More information about the llvm-commits mailing list