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

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Apr 1 11:19:25 PDT 2014


> .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?

Cheers,
Rafael



More information about the llvm-commits mailing list