Skip to content

Commit c8a8736

Browse files
committed
Remove @plt in inline asm since it makes macOS sad
1 parent cb4232d commit c8a8736

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/arch/x86_64.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ pub unsafe fn init(stack_base: *mut u8, f: unsafe fn(usize, StackPointer)) -> St
145145
# context with the given exception object.
146146
movq %rax, %rdi
147147
testq %rax, %rax
148-
jnz ${1:c}@plt
148+
jnz ${1:c}
149149
150150
# Clear the stack pointer. We can't call into this context any more once
151151
# the function has returned.
@@ -301,7 +301,7 @@ pub unsafe fn unwind(new_sp: StackPointer, new_stack_base: *mut u8) {
301301
# Jump to the start_unwind function, which will force a stack unwind in
302302
# the target context. This will eventually return to us through the
303303
# stack link.
304-
jmp ${0:c}@plt
304+
jmp ${0:c}
305305
0:
306306
"#
307307
:

0 commit comments

Comments
 (0)