dlfcn_stubs.s 634 B

1234567891011121314151617181920212223242526
  1. // SPDX-License-Identifier: Apache-2.0
  2. // SPDX-FileCopyrightText: 2022 The Ebitengine Authors
  3. //go:build darwin || !cgo && (freebsd || linux) && !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. RET
  9. // func dlsym(handle uintptr, symbol *byte) (ret uintptr)
  10. TEXT dlsym(SB), NOSPLIT|NOFRAME, $0-0
  11. JMP purego_dlsym(SB)
  12. RET
  13. // func dlerror() (ret *byte)
  14. TEXT dlerror(SB), NOSPLIT|NOFRAME, $0-0
  15. JMP purego_dlerror(SB)
  16. RET
  17. // func dlclose(handle uintptr) (ret int)
  18. TEXT dlclose(SB), NOSPLIT|NOFRAME, $0-0
  19. JMP purego_dlclose(SB)
  20. RET