[llvm-dev] [RFC] Fail early on unimplementable append linkage uses

Reid Kleckner via llvm-dev llvm-dev at lists.llvm.org
Fri May 13 08:14:04 PDT 2016


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. :)

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


More information about the llvm-dev mailing list