<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 1, 2014 at 8:30 PM, Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank">klimek@google.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 class="gmail_extra"><div class="gmail_quote"><div><div class="h5">On Tue, Apr 1, 2014 at 8:27 PM, Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank">klimek@google.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 class="gmail_extra"><div class="gmail_quote"><div><div>On Tue, Apr 1, 2014 at 8:19 PM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@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>> .Ltmp1854:<br>
>         addl    $_GLOBAL_OFFSET_TABLE_+(.Ltmp1854-.L45$pb), %ebx<br>
>         movl    <symbol_redacted>@GOT(%ebx), %eax<br>
>         movl    %eax, 24(%esp)<br>
>         movl    <symbol_redacted>@GOT(%ebx), %eax<br>
>         movl    %eax, 20(%esp)<br>
>         leal    .L.str3@GOTOFF(%ebx), %esi<br>
>         movl    %esi, 16(%esp)<br>
>         leal    .L.str2@GOTOFF(%ebx), %eax<br>
>         movl    %eax, 12(%esp)<br>
>         leal    .L.str1@GOTOFF(%ebx), %eax<br>
>         movl    %eax, 8(%esp)<br>
>         leal    .L.str@GOTOFF(%ebx), %eax<br>
>         movl    %eax, 4(%esp)<br>
>         leal    _<symbol_redacted>@GOTOFF(%ebx), %eax<br>
>         movl    %eax, (%esp)<br>
>         calll   <symbol_redacted>@PLT<br>
<br>
</div>Ah, ok. So this is compiled with -fPIC I assume. Is the code being<br>
linked into a .so or an executable?<br></blockquote><div><br></div></div></div><div>A .so</div></div></div></div></blockquote><div><br></div></div></div><div>Same thing happens if I compile it into an executable...</div>
</div></div></div></blockquote><div><br></div><div>Btw, if it helps, the arguments are 5 bytes off...</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div></div>
</blockquote></div><br></div></div>
</blockquote></div><br></div></div>