From 98264863254d29deeb45bcbbdb298f246308d673 Mon Sep 17 00:00:00 2001 From: Joseph Tremoulet Date: Fri, 2 Aug 2019 19:06:15 +0000 Subject: [PATCH] Use rip-relative addressing in asm test The absolute form is an error when targeting Darwin. llvm-svn: 367706 --- lldb/lit/Unwind/Inputs/trap_frame_sym_ctx.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/lit/Unwind/Inputs/trap_frame_sym_ctx.s b/lldb/lit/Unwind/Inputs/trap_frame_sym_ctx.s index bbced6656cf5..50ede2d34d38 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