<div>Getting closer...   When emitting symbols, how do I set the symbol's value to the address of the current instruction?  Do I need to emit a label in the current section and another that uses the former to point to the latter?  If possible, a code sample would be very helpful.</div>

<div><br></div><div>And probably questions for Tim, are these "section-relative" mapping symbols, as defined in 4.6.5.1 of the ELF for ARM document?  And what to put in the alignment field?  I see GCC outputting 1, 3, 4, but I don't see a description of that field in the doc.</div>

<div><br></div><div>Lastly, from MCELFStreamer, how do I determine if we generating an ARM or Thumb ELF?  I can catch Thumb from the EmitThumbFunc, but that seems a little odd.  Suggestions? </div>
<div><br></div><div>Here's what I have so far:</div><div><br></div><div><div>$ readelf -s via-llvm-as.o | grep "\$."</div><div>     2: 00000000     0 NOTYPE  LOCAL  DEFAULT    4 $d</div><div>     3: 00000000     0 NOTYPE  LOCAL  DEFAULT    4 $t</div>

</div><div><div>
$ readelf -s via-gcc-as.o | grep "\$."</div><div>     5: 00000000     0 NOTYPE  LOCAL  DEFAULT    1 $t</div><div>    15: 0000020c     0 NOTYPE  LOCAL  DEFAULT    1 $d</div><div>    17: 00000218     0 NOTYPE  LOCAL  DEFAULT    1 $t</div>


<div>    44: 00000732     0 NOTYPE  LOCAL  DEFAULT    1 $d</div><div>    45: 0000073e     0 NOTYPE  LOCAL  DEFAULT    1 $t</div><div>    65: 00000000     0 NOTYPE  LOCAL  DEFAULT    4 $d</div><div>    66: 00000000     0 NOTYPE  LOCAL  DEFAULT    3 $d</div>

<div><br></div><div>Thanks,</div><div>Greg</div>
</div><div><br></div><br><div class="gmail_quote">On Wed, Oct 10, 2012 at 1:08 PM, Greg Fitzgerald <span dir="ltr"><<a href="mailto:garious@gmail.com" target="_blank">garious@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Great, thanks for your help.  I'll take a crack at it and contact<br>
Renato if I have questions.<br>
<span><font color="#888888"><br>
-Greg<br>
</font></span><div><div><br>
<br>
On Wed, Oct 10, 2012 at 1:05 PM, Jim Grosbach <<a href="mailto:grosbach@apple.com" target="_blank">grosbach@apple.com</a>> wrote:<br>
> Cool; glad to help.<br>
><br>
> When I added the data region bits, I tried to keep the ARM-style annotations in mind a bit, so hopefully things will fit together without too much trouble.<br>
><br>
> -Jim<br>
><br>
> On Oct 10, 2012, at 12:05 PM, Renato Golin <<a href="mailto:rengolin@systemcall.org" target="_blank">rengolin@systemcall.org</a>> wrote:<br>
><br>
>> Thanks Jim!<br>
>><br>
>> I have updated the bug with your comments, I think it's a good start.<br>
>><br>
>> Greg, let me know if that's not enough, I think I can help you from now on.<br>
>><br>
>> cheers,<br>
>> --renato<br>
>><br>
</div></div></blockquote></div><br>