dlfcn_stubs.s 624 B

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