[LLVMdev] [lld] supporting gnu linkonce sections in core linking

Shankar Easwaran shankare at codeaurora.org
Tue Apr 1 08:22:37 PDT 2014


I committed a change with the solution that I suggested below as part of 
r205280.

Thanks

Shankar Easwaran

On 3/31/2014 12:26 PM, Shankar Easwaran wrote:
> Hi Nick, Bigcheese,
>
> I wanted to add support to support .gnu.linkonce sections in the resolver.
>
> _*About .gnu.linkonce sections*_
> .gnu.linkonce sections were primarily present in ELF that was used in 
> a way to model COMDAT in early ELF implementations.
>
> We have seen usecases of .gnu.linkonce sections used in various object 
> files(mainly libc), and I think its much needed to support this style 
> in lld as well.
>
> _*a solution to support .gnu.linkonce in lld*_
>
> I was thinking of adding a typeGnuLinkOnce and special case it in the 
> Resolver.
>
> _*Differences between .gnu.linkonce and COMDAT*_
> The only thing that I see a difference between gnu linkonce sections 
> and COMDAT is to raise an error when there is a similar looking 
> section with section groups.
>
> Do you see any better design solutions here ?
>
> Thanks
>
> Shankar Easwaran
>
> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev


-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140401/939cfac6/attachment.html>


More information about the llvm-dev mailing list