This is an archive of the discontinued LLVM Phabricator instance.

ELF: Treat IFunc definitions in DSOs as functions.
ClosedPublic

Authored by pcc on Apr 25 2016, 5:43 PM.

Diff Detail

Event Timeline

pcc updated this revision to Diff 54953.Apr 25 2016, 5:43 PM
pcc retitled this revision from to ELF: Treat IFunc definitions in DSOs as functions..
pcc updated this object.
pcc added reviewers: rafael, ruiu.
pcc added a subscriber: llvm-commits.
rafael edited edge metadata.Apr 26 2016, 8:12 AM
rafael added a subscriber: rafael.

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

This revision was automatically updated to reflect the committed changes.
ruiu edited edge metadata.Apr 26 2016, 1:57 PM

LGTM