github.com/jwijenbergh/purego@v0.0.0-20240126093400-70ff3a61df13/internal/fakecgo/trampolines_stubs.s (about) 1 // Code generated by 'go generate' with gen.go. DO NOT EDIT. 2 3 // SPDX-License-Identifier: Apache-2.0 4 // SPDX-FileCopyrightText: 2022 The Ebitengine Authors 5 6 //go:build darwin || freebsd || linux 7 8 #include "textflag.h" 9 10 // these stubs are here because it is not possible to go:linkname directly the C functions on darwin arm64 11 12 TEXT _malloc(SB), NOSPLIT|NOFRAME, $0-0 13 JMP purego_malloc(SB) 14 RET 15 16 TEXT _free(SB), NOSPLIT|NOFRAME, $0-0 17 JMP purego_free(SB) 18 RET 19 20 TEXT _setenv(SB), NOSPLIT|NOFRAME, $0-0 21 JMP purego_setenv(SB) 22 RET 23 24 TEXT _unsetenv(SB), NOSPLIT|NOFRAME, $0-0 25 JMP purego_unsetenv(SB) 26 RET 27 28 TEXT _sigfillset(SB), NOSPLIT|NOFRAME, $0-0 29 JMP purego_sigfillset(SB) 30 RET 31 32 TEXT _nanosleep(SB), NOSPLIT|NOFRAME, $0-0 33 JMP purego_nanosleep(SB) 34 RET 35 36 TEXT _abort(SB), NOSPLIT|NOFRAME, $0-0 37 JMP purego_abort(SB) 38 RET 39 40 TEXT _pthread_attr_init(SB), NOSPLIT|NOFRAME, $0-0 41 JMP purego_pthread_attr_init(SB) 42 RET 43 44 TEXT _pthread_create(SB), NOSPLIT|NOFRAME, $0-0 45 JMP purego_pthread_create(SB) 46 RET 47 48 TEXT _pthread_detach(SB), NOSPLIT|NOFRAME, $0-0 49 JMP purego_pthread_detach(SB) 50 RET 51 52 TEXT _pthread_sigmask(SB), NOSPLIT|NOFRAME, $0-0 53 JMP purego_pthread_sigmask(SB) 54 RET 55 56 TEXT _pthread_self(SB), NOSPLIT|NOFRAME, $0-0 57 JMP purego_pthread_self(SB) 58 RET 59 60 TEXT _pthread_get_stacksize_np(SB), NOSPLIT|NOFRAME, $0-0 61 JMP purego_pthread_get_stacksize_np(SB) 62 RET 63 64 TEXT _pthread_attr_getstacksize(SB), NOSPLIT|NOFRAME, $0-0 65 JMP purego_pthread_attr_getstacksize(SB) 66 RET 67 68 TEXT _pthread_attr_setstacksize(SB), NOSPLIT|NOFRAME, $0-0 69 JMP purego_pthread_attr_setstacksize(SB) 70 RET 71 72 TEXT _pthread_attr_destroy(SB), NOSPLIT|NOFRAME, $0-0 73 JMP purego_pthread_attr_destroy(SB) 74 RET 75 76 TEXT _pthread_mutex_lock(SB), NOSPLIT|NOFRAME, $0-0 77 JMP purego_pthread_mutex_lock(SB) 78 RET 79 80 TEXT _pthread_mutex_unlock(SB), NOSPLIT|NOFRAME, $0-0 81 JMP purego_pthread_mutex_unlock(SB) 82 RET 83 84 TEXT _pthread_cond_broadcast(SB), NOSPLIT|NOFRAME, $0-0 85 JMP purego_pthread_cond_broadcast(SB) 86 RET 87 88 TEXT _pthread_setspecific(SB), NOSPLIT|NOFRAME, $0-0 89 JMP purego_pthread_setspecific(SB) 90 RET