msgx_darwin.s 323 B

123456789
  1. //go:build !ios
  2. #include "textflag.h"
  3. // The same trampoline shape x/sys/unix uses for its libSystem stubs; it assembles for amd64 and arm64 alike.
  4. TEXT msgx_dlsym_trampoline<>(SB),NOSPLIT,$0-0
  5. JMP msgx_dlsym(SB)
  6. GLOBL ·dlsymTrampolineAddr(SB), RODATA, $8
  7. DATA ·dlsymTrampolineAddr(SB)/8, $msgx_dlsym_trampoline<>(SB)