[Lldb-commits] [lldb] r367706 - Use rip-relative addressing in asm test

Joseph Tremoulet via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 2 12:06:15 PDT 2019


Author: josepht
Date: Fri Aug  2 12:06:15 2019
New Revision: 367706

URL: http://llvm.org/viewvc/llvm-project?rev=367706&view=rev
Log:
Use rip-relative addressing in asm test

The absolute form is an error when targeting Darwin.

Modified:
    lldb/trunk/lit/Unwind/Inputs/trap_frame_sym_ctx.s

Modified: lldb/trunk/lit/Unwind/Inputs/trap_frame_sym_ctx.s
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Unwind/Inputs/trap_frame_sym_ctx.s?rev=367706&r1=367705&r2=367706&view=diff
==============================================================================
--- lldb/trunk/lit/Unwind/Inputs/trap_frame_sym_ctx.s (original)
+++ lldb/trunk/lit/Unwind/Inputs/trap_frame_sym_ctx.s Fri Aug  2 12:06:15 2019
@@ -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
 




More information about the lldb-commits mailing list