mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 14:20:17 +00:00
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
Block a user