forked from OSchip/llvm-project
Use rip-relative addressing in asm test
The absolute form is an error when targeting Darwin. llvm-svn: 367706
This commit is contained in:
parent
f98a153c8d
commit
9826486325
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue