summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph Tremoulet <jotrem@microsoft.com>2019-08-02 19:06:15 +0000
committerJoseph Tremoulet <jotrem@microsoft.com>2019-08-02 19:06:15 +0000
commit98264863254d29deeb45bcbbdb298f246308d673 (patch)
tree78ee16831fc53688b8c907ce024610ddc20467f0
parentf98a153c8dcb9aa1eb0937e89eddd11103e8cdd6 (diff)
downloadbcm5719-llvm-98264863254d29deeb45bcbbdb298f246308d673.tar.gz
bcm5719-llvm-98264863254d29deeb45bcbbdb298f246308d673.zip
Use rip-relative addressing in asm test
The absolute form is an error when targeting Darwin. llvm-svn: 367706
-rw-r--r--lldb/lit/Unwind/Inputs/trap_frame_sym_ctx.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/lit/Unwind/Inputs/trap_frame_sym_ctx.s b/lldb/lit/Unwind/Inputs/trap_frame_sym_ctx.s
index bbced6656cf..50ede2d34d3 100644
--- a/lldb/lit/Unwind/Inputs/trap_frame_sym_ctx.s
+++ b/lldb/lit/Unwind/Inputs/trap_frame_sym_ctx.s
@@ -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
OpenPOWER on IntegriCloud