dlfcn_stubs.s raw
1 // SPDX-License-Identifier: Apache-2.0
2 // SPDX-FileCopyrightText: 2022 The Ebitengine Authors
3
4 //go:build darwin || !cgo && (freebsd || linux || netbsd) && !faketime
5
6 #include "textflag.h"
7
8 // func dlopen(path *byte, mode int) (ret uintptr)
9 TEXT dlopen(SB), NOSPLIT|NOFRAME, $0-0
10 JMP purego_dlopen(SB)
11 RET
12
13 // func dlsym(handle uintptr, symbol *byte) (ret uintptr)
14 TEXT dlsym(SB), NOSPLIT|NOFRAME, $0-0
15 JMP purego_dlsym(SB)
16 RET
17
18 // func dlerror() (ret *byte)
19 TEXT dlerror(SB), NOSPLIT|NOFRAME, $0-0
20 JMP purego_dlerror(SB)
21 RET
22
23 // func dlclose(handle uintptr) (ret int)
24 TEXT dlclose(SB), NOSPLIT|NOFRAME, $0-0
25 JMP purego_dlclose(SB)
26 RET
27