[LLVMdev] Changing the design of GlobalAliases to represent what is actually possible in object files.

Chandler Carruth chandlerc at google.com
Fri May 23 15:14:56 PDT 2014


On Fri, May 23, 2014 at 4:06 PM, Rafael Avila de Espindola <
rafael.espindola at gmail.com> wrote:

> Sent from my iPhone
>
> > On May 23, 2014, at 17:51, Eric Christopher <echristo at gmail.com> wrote:
> >
> > I'm not there yet, but at some point I'm going to need the notion of a
> > global callable function like symbol that's resolved at runtime. I've
> > not given it much thought but I may need a new callable entity here
> > (this is for the gnu ifunc stuff).
> >
> > Don't even know if this fits into the discussion, but since we were
> > talking about weird symbols...
> >
>
> It is a symbol or a value that is loaded? If it is an symbol, what does it
> point to? That is, what is the value that shows up in the .o?
>

It's an IFUNC symbol. It is a relocation resolved by the loader at load
time by calling a designated function and replacing the relocation with the
returned function pointer (roughly).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140523/c421f41b/attachment.html>


More information about the llvm-dev mailing list