https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125511
Vijay shankar <vtelidev at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vtelidev at gcc dot gnu.org
--- Comment #1 from Vijay shankar <vtelidev at gcc dot gnu.org> ---
>>0xb7fad53c <+44>: mtctr r11
>>0xb7fad540 <+48>: bctrl
confirmed,
these insn branch to
__tls_get_addr_opt
which give offset instead of concrete address so whatever we see in r3 is an
offset.
for now work around would be to use linker flags -Wl,--no-tls-get-addr-optimize