github.com/ebiten/purego@v0.0.0-20220525025155-0f6873f42222/stubs.s (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // SPDX-FileCopyrightText: 2022 The Ebiten Authors
     3  
     4  //go:build darwin
     5  // +build darwin
     6  
     7  #include "textflag.h"
     8  
     9  // func dlopen(path *byte, mode int) (ret uintptr)
    10  GLOBL ·dlopenABI0(SB), NOPTR|RODATA, $8
    11  DATA ·dlopenABI0(SB)/8, $·dlopen(SB)
    12  TEXT ·dlopen(SB), NOSPLIT, $0-0
    13  	JMP _dlopen(SB)
    14  	RET
    15  
    16  // func dlsym(handle uintptr, symbol *byte) (ret uintptr)
    17  GLOBL ·dlsymABI0(SB), NOPTR|RODATA, $8
    18  DATA ·dlsymABI0(SB)/8, $·dlsym(SB)
    19  TEXT ·dlsym(SB), NOSPLIT, $0-0
    20  	JMP _dlsym(SB)
    21  	RET
    22