As Xellos
mentioned in the comments the problem is in the inline assembly which is not written in a relocatable manner. As LIU Hao
mentioned here, changing call syscall_hooker_cxx
(at attach/text_segment_transformer.cpp:83)
to syscall_hooker_cxx@PLT
resolves the issue.