rSerge added a comment. Is xray_trampoline_x86.S for x86_64 only or is it supposed to work for both x86 and x86_64? If the latter, then there seems to be a bug with always using RETQ, rather than RETL for x86. Repository: rL LLVM https://reviews.llvm.org/D21612