[llvm] r205076 - Completely rewrite ELFObjectWriter::RecordRelocation.
Manuel Klimek
klimek at google.com
Tue Apr 1 11:31:24 PDT 2014
On Tue, Apr 1, 2014 at 8:30 PM, Manuel Klimek <klimek at google.com> wrote:
> On Tue, Apr 1, 2014 at 8:27 PM, Manuel Klimek <klimek at google.com> wrote:
>
>> On Tue, Apr 1, 2014 at 8:19 PM, Rafael EspĂndola <
>> rafael.espindola at gmail.com> wrote:
>>
>>> > .Ltmp1854:
>>> > addl $_GLOBAL_OFFSET_TABLE_+(.Ltmp1854-.L45$pb), %ebx
>>> > movl <symbol_redacted>@GOT(%ebx), %eax
>>> > movl %eax, 24(%esp)
>>> > movl <symbol_redacted>@GOT(%ebx), %eax
>>> > movl %eax, 20(%esp)
>>> > leal .L.str3 at GOTOFF(%ebx), %esi
>>> > movl %esi, 16(%esp)
>>> > leal .L.str2 at GOTOFF(%ebx), %eax
>>> > movl %eax, 12(%esp)
>>> > leal .L.str1 at GOTOFF(%ebx), %eax
>>> > movl %eax, 8(%esp)
>>> > leal .L.str at GOTOFF(%ebx), %eax
>>> > movl %eax, 4(%esp)
>>> > leal _<symbol_redacted>@GOTOFF(%ebx), %eax
>>> > movl %eax, (%esp)
>>> > calll <symbol_redacted>@PLT
>>>
>>> Ah, ok. So this is compiled with -fPIC I assume. Is the code being
>>> linked into a .so or an executable?
>>>
>>
>> A .so
>>
>
> Same thing happens if I compile it into an executable...
>
Btw, if it helps, the arguments are 5 bytes off...
>
>
>>
>>
>>>
>>> Cheers,
>>> Rafael
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140401/9dcb60dc/attachment.html>
More information about the llvm-commits
mailing list