https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109326
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note if you are disassemblying the object file with objdump -d, you might want to add the -r option to enable dumping of the relocations that are produced too. In the init_olock_op_struct case you miss the relocation of the object file because of that.