[LLVMdev] Changing the design of GlobalAliases to represent what is actually possible in object files.
Reid Kleckner
rnk at google.com
Fri May 23 13:26:48 PDT 2014
On Thu, May 22, 2014 at 7:14 PM, Rafael Espíndola <
rafael.espindola at gmail.com> wrote:
>
> > For example, it would not be possible to define an absolute symbol to be
> > the offset between two symbols. In some restricted circumstances —
> > if both symbols are global variables in the same section and defined
> > in the same translation unit — this could be worked around.
> >
> > But I’ll gladly admit that I don’t have a use case in mind for that
> feature.
> > Absolute symbols are useful, and storing offsets between symbols into
> > global memory is useful, but I don’t know why you’d combine them.
>
> That is funny. I, on the other hand, think that this is the best
> argument I have seen for keeping aliases pointing to ConstantExpr so
> far.
>
IMO if we want to support defining symbols at absolute addresses, we should
add a separate construct for this. So far everyone has gotten by with
linker flags and scripts, though.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140523/fb9a3d2b/attachment.html>
More information about the llvm-dev
mailing list