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

--- Comment #5 from Ruslan Nikolaev <nruslan_devel at yahoo dot com> ---
(In reply to Andrew Pinski from comment #4)
> Still is a binutils (assembler rather than the linker issue):
>         .file   "t.c"
>         .text
> #APP
>         a: .long func@plt - 4
> #NO_APP
>         .globl  geta
>         .type   geta, @function
> geta:
> .LFB0:
>         .cfi_startproc
>         pushq   %rbp
>         .cfi_def_cfa_offset 16
>         .cfi_offset 6, -16
>         movq    %rsp, %rbp
>         .cfi_def_cfa_register 6
>         movq    a@GOTPCREL(%rip), %rax
>         movl    (%rax), %eax
>         popq    %rbp
>         .cfi_def_cfa 7, 8
>         ret
>         .cfi_endproc
> .LFE0:
>         .size   geta, .-geta
>         .ident  "GCC: (Octeon TX GCC 7 - (Build 116)) 7.3.0"
>         .section        .note.GNU-stack,"",@progbits
> 
> 
> What GCC outputs does not have the -4 in there.

Ok, thanks!

Reply via email to