<div dir="ltr">Seems like #2 won't work for this case:<div><br><div><div>@l = thread_local global i32 0, section "bar", align 4</div><div>@k = global i32 0, section "bar", align 4</div></div></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Sep 15, 2013 at 6:40 PM, David Majnemer <span dir="ltr"><<a href="mailto:david.majnemer@gmail.com" target="_blank">david.majnemer@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>What do we expect from the following IR?</div><div><br></div><div>@i2 = constant i32 30, section "INITDATA", align 4</div>
<div>@i1 = global i32 0, section "INITDATA", align 4</div><div>
<br></div><div>Currently, we stick them in one section that isn't writable which is problematic because @i1 is writable.  If you flip @i1 and @i2 you get one section which is writable.</div><div><br></div><div>It seems like we should do one of the following:</div>

<div>1. Two sections, one writable + one that isn't</div><div>2. One section that is writable</div><div>3. Give an error</div><div><br></div><div>Personally, I like #1 or #2.</div><span class="HOEnZb"><font color="#888888"><div>
<br></div><div>-- </div><div>David Majnemer</div>
</font></span></div>
</blockquote></div><br></div>