[llvm] r205076 - Completely rewrite ELFObjectWriter::RecordRelocation.

Manuel Klimek klimek at google.com
Tue Apr 1 09:48:49 PDT 2014


On Tue, Apr 1, 2014 at 5:56 PM, Rafael EspĂ­ndola <rafael.espindola at gmail.com
> wrote:

> > x86 (-m32 -march=pentium3)


> Are you using gold or bfd ld?


gold


> What does the assembly look like around
> the call? Is it something like
>
>
>         movl    $.L.str1, 4(%esp)
>         movl    $.L.str, (%esp)
>         calll   test
>
> correct?
>

.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


>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140401/7cf872fc/attachment.html>


More information about the llvm-commits mailing list