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

--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
I don't think the compiler is at fault here.

Tracing the executable, I got:

Breakpoint 1, 0x0000555555554780 in __cpu_indicator_init@plt ()
(gdb) disass
Dump of assembler code for function __cpu_indicator_init@plt:
=> 0x0000555555554780 <+0>:     jmpq   *0x2018ba(%rip)        # 0x555555756040
<__cpu_indicator_i...@got.plt>
   0x0000555555554786 <+6>:     pushq  $0x4
   0x000055555555478b <+11>:    jmpq   0x555555554720
End of assembler dump.
(gdb) p/x *0x555555756040
$1 = 0x786

(gdb) si
0x0000000000000786 in ?? ()

Some kind of fixup is missing for __cpu_indicator_i...@got.plt value.

Reply via email to