<div dir="ltr">On Mon, Oct 28, 2013 at 9:26 PM, Shankar Easwaran <span dir="ltr"><<a href="mailto:shankare@codeaurora.org" target="_blank">shankare@codeaurora.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 10/28/2013 11:20 PM, Rui Ueyama wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, Oct 28, 2013 at 9:07 PM, Shankar Easwaran<br>
<<a href="mailto:shankare@codeaurora.org" target="_blank">shankare@codeaurora.org</a>><u></u>wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 10/28/2013 6:26 PM, Rui Ueyama wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-      : COFFDefinedFileAtom(file, name, "", scope, typeZeroFill, perms,<br>
+      : COFFDefinedFileAtom(file, name, ".bss", scope, typeZeroFill,<br>
perms,<br>
<br>
</blockquote>
The section name should be derived by the writer for default section types.<br>
<br>
</blockquote>
That is not true for COFF. In COFF, section name has significance unlike<br>
ELF, and the linker is expected to emit sections with the same name as in<br>
the object file.<br>
</blockquote>
<br></div>
ELF goes by section names too. What I am trying to say here is if the atoms contentType is typeZeroFill set the section name to .bss. Having a section name as the default would only increase the native IR file size, and increase in memory usage.<br>

</blockquote><div><br></div><div>Well, there is an interesting feature in link.exe that you can rename or combine sections by /merge:<i>.from</i>=<i>.to</i>. And you can combine .bss to .data by /merge:.bss=.data. So it's better to set section name to BSS atoms.</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks<br>
<br>
Shankar Easwawran<br>
</blockquote></div><br></div></div>