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
12 // func dlsym(handle uintptr, symbol *byte) (ret uintptr)
13 TEXT dlsym(SB), NOSPLIT|NOFRAME, $0-0
14 JMP purego_dlsym(SB)
15
16 // func dlerror() (ret *byte)
17 TEXT dlerror(SB), NOSPLIT|NOFRAME, $0-0
18 JMP purego_dlerror(SB)
19
20 // func dlclose(handle uintptr) (ret int)
21 TEXT dlclose(SB), NOSPLIT|NOFRAME, $0-0
22 JMP purego_dlclose(SB)
23