<div dir="ltr">Thanks, Shankar. I think I understand that now.<div><br></div><div>What do you think about this patch, BTW?<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 6, 2013 at 7:17 AM, Shankar Easwaran <span dir="ltr"><<a href="mailto:shankare@codeaurora.org" target="_blank">shankare@codeaurora.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
<br>
On 6/5/2013 11:18 PM, Rui Ueyama wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Thank you for the clarification. That's very helpful. Comments inline.<br></div><div class="im">
I see. So, because all atoms in the same section (except weak symbols) are<br>
reachable from each other, if there's a reference from a live atom to one<br>
of them, all the other atoms in the same section (again, except weak ones)<br>
become alive and will be emitted to the output binary. Is this<br>
understanding correct?<br>
</div></blockquote>
Yes<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Let me double check if I understand what you said by drawing a graph. Normal arrow denotes Layout-After edge, and empty arrow denotes Layout-Before edge. If a section has symbol A, W and C in this order, and W is a weak symbol, then the resulting graph will look like this (Not sure pasting a image will really work on this mailing list but let me try...): [image: Inline image 1] where W' is an anonymous atom having the content of W. If W is overridden by a non-weak symbol, W will be GC'ed (dead-stripped) away, but its contents will still be emitted to the resulting binary as W' is alive (assuming A or C are alive), although there are no atoms that really refer W's content. Is this correct? <br>


</blockquote></div>
Yes, as the symbol lived within a section.<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
And if there are two weak symbols, W1 and W2, between symbol A and C, then<br>
the graph should become like this, right?<br>
</blockquote></div>
Yes.<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
-- <br>
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation<br>
<br>
</div></div></blockquote></div><br></div>