<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">I don't quite understand what you mean. Why is this related to group?</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Thu, Mar 6, 2014 at 4:40 PM, Shankar Kalpathi Easwaran <span dir="ltr"><<a href="mailto:shankarke@gmail.com" target="_blank">shankarke@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
This is what I snipped from the COFF manual<br>
<br>
<----snip----><br>
<br>
5.5.6. COMDAT Sections (Object Only)<br>
The Selection field of the Section Definition auxiliary format is applicable if the section is<br>
a COMDAT section: a section that can be defined by more than one object file. (The flag<br>
IMAGE_SCN_LNK_COMDAT is set in the Section Flags field of the section header.)<br>
The Selection field determines the way that the linker resolves the multiple definitions of<br>
COMDAT sections.<br>
The first symbol having the section value of the COMDAT section must be the section<br>
symbol. This symbol has the name of the section, Value field equal to 0, the section<br>
number of the COMDAT section in question, Type field equal to<br>
IMAGE_SYM_TYPE_NULL, Class field equal to IMAGE_SYM_CLASS_STATIC, and<br>
one auxiliary record. The second symbol is called “the COMDAT symbol” and is used by<br>
the linker in conjunction with the Selection field.<br>
<br>
<------------><br>
<br>
It looks like you need to deal with the COMDAT symbol with a typeGroupComdat, i.e in the test case _foo needs to be handled as the symbol that represents the group.<br>
<br>
<a href="http://llvm-reviews.chandlerc.com/D2996" target="_blank">http://llvm-reviews.chandlerc.com/D2996</a><br>
</blockquote></div><br></div></div>