https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63842

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-11-27
     Ever confirmed|0                           |1

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
r218132 generates:

main:
.LFB11:
    .cfi_startproc
.L2:
    leaq    .L2(%rip), %rax
    movabsq    $_GLOBAL_OFFSET_TABLE_-.L2, %r11
    movabsq    $.LC0@GOTOFF, %rdx
    pushq    %r15
    .cfi_def_cfa_offset 16
    .cfi_offset 15, -16
    addq    %r11, %rax
    leaq    (%rax,%rdx), %rdi
    movabsq    $puts@PLTOFF, %rdx
    movq    %rax, %r15
    addq    %rax, %rdx
    call    *%rdx
    xorl    %eax, %eax
    popq    %r15
    .cfi_def_cfa_offset 8
    ret
    .cfi_endproc
.LFE11:

It looks OK.  But it is hard to test without a linker supporting large
model PLT.  I will leave it open until I finish large model PLT support
in binutils so that I can verify it.

Reply via email to