[PATCH] [lld][core] sectionGroup support.

Shankar Easwaran shankare at codeaurora.org
Thu Feb 27 14:09:57 PST 2014


Hi Nick,

On 2/27/2014 2:52 PM, Shankar Easwaran wrote:
>
> $ cat comdat1.s
>         .global g1
>         .section .foo,"axG", at progbits,g1,comdat
>         .section .data, "aw", at progbits
>         .global g1
> g1:
>         .word 10
>
> Here g1, is the signature of the group and we have a global symbol 
> g1(data).
>
> When I dump the symbol table, I find only one symbol g1.
>
> $ objdump -Clx comdat1.o | grep g1
> 0000000000000000 g *.data * 0000000000000000 *g1*
It appears that the linker needs to deal with two namespaces, and think 
its best to consider the group signature separately from the other 
atoms. We could have an additional map in the Resolver that would just 
handle resolution for groups ?

Thanks

Shankar Easwaran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140227/cdc9fea7/attachment.html>


More information about the llvm-commits mailing list