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

--- Comment #4 from Sam James <sjames at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #3)
> The minimized testcase looks correct. 
> 
> This also might be a binutils/ld bug.

-fuse-ld={lld,mold} gives the same:

$ objdump -r a | grep _ZThn120_N14Gtid_log_event13get_data_sizeEv
0000000000000038 R_X86_64_PLT32   
_ZThn120_N14Gtid_log_event13get_data_sizeEv-0x0000000000000004
0000000000000038 R_X86_64_64       _ZThn120_N14Gtid_log_event13get_data_sizeEv

But this is also a prickly area that people have got wrong before.

Reply via email to