<div dir="ltr"><div>> Given something like:</div><div>> <br></div><div>>     ldr r0, .LCPI0_0 (== pc-rel var)</div><div>>     add r0, pc</div><div>> <br></div><div>>     ldr r1, .LCPI0_1 (== pc-rel var)</div><div>>     add r1, pc</div><div>> <br></div><div><br>Where can we get the above assembly code?<br>For example, from clsload.s with "save-temps" flag? or from libcoreclr.so  with "objdump -d" command?</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 10, 2016 at 10:39 PM, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 9 May 2016 at 23:37, Geunsik Lim <<a href="mailto:leemgs@gmail.com">leemgs@gmail.com</a>> wrote:<br>
> arm@target# objdump -d ./libcoreclr.so  | grep tls_get_addr <--- version<br>
> 2.25<br>
> 00037b70 <__tls_get_addr@plt>:<br>
>    a0732: f797 ea1e blx 37b70 <__tls_get_addr@plt><br>
<br>
</span>This is exactly what I see, so I'm not sure what you're actually looking for.<br>
<br>
That first line (37b70) is the PLT stub for __tls_get_addr that lives<br>
in libcoreclr.so. If you look at the following 3 lines, they call into<br>
ld-linux.so, which looks up where the real __tls_get_addr function is<br>
and calls that instead.<br>
<br>
In this case the real definition also happens to be in ld-linux.so,<br>
but that's not typical. E.g. printf would be in libc.so.<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><a href="http://leemgs.fedorapeople.org" style="font-family:Tahoma" target="_blank">http://leemgs.fedorapeople.org</a><span style="font-family:Tahoma"> </span></div><div>Don't try to avoid pain if you fail.<br>If you decided to face the challenges in life, <br>you can gain a lot by giving your best.<br>Cheolsang Jeong's Book & life<br>--<br></div></div></div>
</div>