Use rip-relative addressing in asm test

The absolute form is an error when targeting Darwin.

llvm-svn: 367706
This commit is contained in:
Joseph Tremoulet 2019-08-02 19:06:15 +00:00
parent f98a153c8d
commit 9826486325

View File

@ -18,7 +18,7 @@ asm_main:
# install tramp as return address
# (similar to signal return trampolines on some platforms)
leaq tramp, %rax
leaq tramp(%rip), %rax
pushq %rax
jmp bar # call, with return address pointing to tramp