diff --git a/lldb/test/Shell/Unwind/Inputs/thread-step-out-ret-addr-check.s b/lldb/test/Shell/Unwind/Inputs/thread-step-out-ret-addr-check.s --- a/lldb/test/Shell/Unwind/Inputs/thread-step-out-ret-addr-check.s +++ b/lldb/test/Shell/Unwind/Inputs/thread-step-out-ret-addr-check.s @@ -1,14 +1,13 @@ .text .globl asm_main asm_main: - sub $0x8, %rsp - movq $0, (%rsp) - push %rsp + mov var@GOTPCREL(%rip), %rcx + push %rcx jmp _nonstandard_stub # Takes a single pointer argument via the stack, which is nonstandard for x64. # Executing 'thread step-out' here will initially attempt to write a -# breakpoint to that stack address, but should fail because of the executable +# breakpoint to that .data address, but should fail because of the executable # memory check. _nonstandard_stub: mov (%rsp), %rdi @@ -18,3 +17,7 @@ add $0x10, %rsp ret + + .data +var: + .long 0