Skip to content

Instantly share code, notes, and snippets.

@naughtyfox
Created October 6, 2025 11:54
Show Gist options
  • Select an option

  • Save naughtyfox/7e26d52e63b78b60246349b7553c9784 to your computer and use it in GitHub Desktop.

Select an option

Save naughtyfox/7e26d52e63b78b60246349b7553c9784 to your computer and use it in GitHub Desktop.
_x014.s
# 0 "gcc_amd64.S"
# 1 "/usr/local/go/src/runtime/cgo//"
# 0 "<built-in>"
# 0 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 0 "<command-line>" 2
# 1 "gcc_amd64.S"
.file "gcc_amd64.S"
# 25 "gcc_amd64.S"
.globl crosscall1
crosscall1:
pushq %rbx
pushq %rbp
pushq %r12
pushq %r13
pushq %r14
pushq %r15
movq %rdi, %rbx
movq %rdx, %rdi
call *%rsi
call *%rbx
popq %r15
popq %r14
popq %r13
popq %r12
popq %rbp
popq %rbx
ret
.section .note.GNU-stack,"",@progbits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment