[llvm-dev] [RFC] Fail early on unimplementable append linkage uses
Chandler Carruth via llvm-dev
llvm-dev at lists.llvm.org
Sun May 15 17:55:39 PDT 2016
On Fri, May 13, 2016 at 9:14 AM Reid Kleckner via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> I think appending linkage was intended to abstract over the
> platform-specific details of arranging a custom section with start and
> end symbols. Nobody ever implemented it though, so until they are
> implemented, rejecting them early sounds good. :)
>
+1 from me
>
> On Fri, May 13, 2016 at 5:43 AM, Rafael EspĂndola
> <llvm-dev at lists.llvm.org> wrote:
> > Append linkage is magical. It doesn't correspond to anything available
> > in real object files (ELF/COFF/MachO). In those files sections are
> > appended, but symbols are just resolved.
> >
> > That means that appending linkage can only be used with llvm special
> > symbols that never hit a real .o.
> >
> > Long term I think we should delete it an replace with explicit use of
> section.
> >
> > But for now I would like to just error early if we try to actually put
> > one in an object file. That is what http://reviews.llvm.org/D20179
> > does. Is everyone OK with that with a langref update?
> >
> > Cheers,
> > Rafael
> > _______________________________________________
> > LLVM Developers mailing list
> > llvm-dev at lists.llvm.org
> > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160516/01013b0a/attachment.html>
More information about the llvm-dev
mailing list