8000 zig/lib/libc/musl/libc.S at link-tests · dominictarr/zig · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
5405 lines (5405 loc) · 103 KB

libc.S

File metadata and controls

5405 lines (5405 loc) · 103 KB
#ifdef PTR64
#define WEAK64 .weak
#define PTR_SIZE_BYTES 8
#define PTR2_SIZE_BYTES 16
#else
#define WEAK64 .globl
#define PTR_SIZE_BYTES 4
#define PTR2_SIZE_BYTES 8
#endif
.rodata
.globl in6addr_any
.type in6addr_any, %object;
.size in6addr_any, 16
in6addr_any:
.globl in6addr_loopback
.type in6addr_loopback, %object;
.size in6addr_loopback, 16
in6addr_loopback:
.globl _ns_flagdata
.type _ns_flagdata, %object;
.size _ns_flagdata, 128
_ns_flagdata:
.text
.weak aio_read64
.type aio_read64, %function;
aio_read64:
.globl aio_read
.type aio_read, %function;
aio_read:
.globl aio_write
.type aio_write, %function;
aio_write:
.weak aio_write64
.type aio_write64, %function;
aio_write64:
.globl aio_fsync
.type aio_fsync, %function;
aio_fsync:
.weak aio_fsync64
.type aio_fsync64, %function;
aio_fsync64:
.weak aio_return64
.type aio_return64, %function;
aio_return64:
.globl aio_return
.type aio_return, %function;
aio_return:
.globl aio_error
.type aio_error, %function;
aio_error:
.weak aio_error64
.type aio_error64, %function;
aio_error64:
.globl aio_cancel
.type aio_cancel, %function;
aio_cancel:
.weak aio_cancel64
.type aio_cancel64, %function;
aio_cancel64:
.globl aio_suspend
.type aio_suspend, %function;
aio_suspend:
.weak aio_suspend64
.type aio_suspend64, %function;
aio_suspend64:
.globl lio_listio
.type lio_listio, %function;
lio_listio:
.weak lio_listio64
.type lio_listio64, %function;
lio_listio64:
.globl cabs
.type cabs, %function;
cabs:
.globl cabsf
.type cabsf, %function;
cabsf:
.globl cabsl
.type cabsl, %function;
cabsl:
.globl cacos
.type cacos, %function;
cacos:
.globl cacosf
.type cacosf, %function;
cacosf:
.globl cacosh
.type cacosh, %function;
cacosh:
.globl cacoshf
.type cacoshf, %function;
cacoshf:
.globl cacoshl
.type cacoshl, %function;
cacoshl:
.globl cacosl
.type cacosl, %function;
cacosl:
.globl carg
.type carg, %function;
carg:
.globl cargf
.type cargf, %function;
cargf:
.globl cargl
.type cargl, %function;
cargl:
.globl casin
.type casin, %function;
casin:
.globl casinf
.type casinf, %function;
casinf:
.globl casinh
.type casinh, %function;
casinh:
.globl casinhf
.type casinhf, %function;
casinhf:
.globl casinhl
.type casinhl, %function;
casinhl:
.globl casinl
.type casinl, %function;
casinl:
.globl catan
.type catan, %function;
catan:
.globl catanf
.type catanf, %function;
catanf:
.globl catanh
.type catanh, %function;
catanh:
.globl catanhf
.type catanhf, %function;
catanhf:
.globl catanhl
.type catanhl, %function;
catanhl:
.globl catanl
.type catanl, %function;
catanl:
.globl ccos
.type ccos, %function;
ccos:
.globl ccosf
.type ccosf, %function;
ccosf:
.globl ccosh
.type ccosh, %function;
ccosh:
.globl ccoshf
.type ccoshf, %function;
ccoshf:
.globl ccoshl
.type ccoshl, %function;
ccoshl:
.globl ccosl
.type ccosl, %function;
ccosl:
.globl cexp
.type cexp, %function;
cexp:
.globl cexpf
.type cexpf, %function;
cexpf:
.globl cexpl
.type cexpl, %function;
cexpl:
.globl cimag
.type cimag, %function;
cimag:
.globl cimagf
.type cimagf, %function;
cimagf:
.globl cimagl
.type cimagl, %function;
cimagl:
.globl clog
.type clog, %function;
clog:
.globl clogf
.type clogf, %function;
clogf:
.globl clogl
.type clogl, %function;
clogl:
.globl conj
.type conj, %function;
conj:
.globl conjf
.type conjf, %function;
conjf:
.globl conjl
.type conjl, %function;
conjl:
.globl cpow
.type cpow, %function;
cpow:
.globl cpowf
.type cpowf, %function;
cpowf:
.globl cpowl
.type cpowl, %function;
cpowl:
.globl cproj
.type cproj, %function;
cproj:
.globl cprojf
.type cprojf, %function;
cprojf:
.globl cprojl
.type cprojl, %function;
cprojl:
.globl creal
.type creal, %function;
creal:
.globl crealf
.type crealf, %function;
crealf:
.globl creall
.type creall, %function;
creall:
.globl csin
.type csin, %function;
csin:
.globl csinf
.type csinf, %function;
csinf:
.globl csinh
.type csinh, %function;
csinh:
.globl csinhf
.type csinhf, %function;
csinhf:
.globl csinhl
.type csinhl, %function;
csinhl:
.globl csinl
.type csinl, %function;
csinl:
.globl csqrt
.type csqrt, %function;
csqrt:
.globl csqrtf
.type csqrtf, %function;
csqrtf:
.globl csqrtl
.type csqrtl, %function;
csqrtl:
.globl ctan
.type ctan, %function;
ctan:
.globl ctanf
.type ctanf, %function;
ctanf:
.globl ctanh
.type ctanh, %function;
ctanh:
.globl ctanhf
.type ctanhf, %function;
ctanhf:
.globl ctanhl
.type ctanhl, %function;
ctanhl:
.globl ctanl
.type ctanl, %function;
ctanl:
.globl confstr
.type confstr, %function;
confstr:
.globl fpathconf
.type fpathconf, %function;
fpathconf:
.globl get_nprocs_conf
.type get_nprocs_conf, %function;
get_nprocs_conf:
.globl get_nprocs
.type get_nprocs, %function;
get_nprocs:
.globl get_phys_pages
.type get_phys_pages, %function;
get_phys_pages:
.globl get_avphys_pages
.type get_avphys_pages, %function;
get_avphys_pages:
.globl pathconf
.type pathconf, %function;
pathconf:
.globl sysconf
.type sysconf, %function;
sysconf:
.globl crypt
.type crypt, %function;
crypt:
.weak crypt_r
.type crypt_r, %function;
crypt_r:
.globl setkey
.type setkey, %function;
setkey:
.globl encrypt
.type encrypt, %function;
encrypt:
.globl __ctype_b_loc
.type __ctype_b_loc, %function;
__ctype_b_loc:
.globl __ctype_get_mb_cur_max
.type __ctype_get_mb_cur_max, %function;
__ctype_get_mb_cur_max:
.globl __ctype_tolower_loc
.type __ctype_tolower_loc, %function;
__ctype_tolower_loc:
.globl __ctype_toupper_loc
.type __ctype_toupper_loc, %function;
__ctype_toupper_loc:
.globl isalnum
.type isalnum, %function;
isalnum:
.globl __isalnum_l
.type __isalnum_l, %function;
__isalnum_l:
.weak isalnum_l
.type isalnum_l, %function;
isalnum_l:
.globl isalpha
.type isalpha, %function;
isalpha:
.weak isalpha_l
.type isalpha_l, %function;
isalpha_l:
.globl __isalpha_l
.type __isalpha_l, %function;
__isalpha_l:
.globl isascii
.type isascii, %function;
isascii:
.globl isblank
.type isblank, %function;
isblank:
.globl __isblank_l
.type __isblank_l, %function;
__isblank_l:
.weak isblank_l
.type isblank_l, %function;
isblank_l:
.globl iscntrl
.type iscntrl, %function;
iscntrl:
.weak iscntrl_l
.type iscntrl_l, %function;
iscntrl_l:
.globl __iscntrl_l
.type __iscntrl_l, %function;
__iscntrl_l:
.globl isdigit
.type isdigit, %function;
isdigit:
.weak isdigit_l
.type isdigit_l, %function;
isdigit_l:
.globl __isdigit_l
.type __isdigit_l, %function;
__isdigit_l:
.globl isgraph
.type isgraph, %function;
isgraph:
.globl __isgraph_l
.type __isgraph_l, %function;
__isgraph_l:
.weak isgraph_l
.type isgraph_l, %function;
isgraph_l:
.globl islower
.type islower, %function;
islower:
.weak islower_l
.type islower_l, %function;
islower_l:
.globl __islower_l
.type __islower_l, %function;
__islower_l:
.globl isprint
.type isprint, %function;
isprint:
.weak isprint_l
.type isprint_l, %function;
isprint_l:
.globl __isprint_l
.type __isprint_l, %function;
__isprint_l:
.globl ispunct
.type ispunct, %function;
ispunct:
.weak ispunct_l
.type ispunct_l, %function;
ispunct_l:
.globl __ispunct_l
.type __ispunct_l, %function;
__ispunct_l:
.globl isspace
.type isspace, %function;
isspace:
.weak isspace_l
.type isspace_l, %function;
isspace_l:
.globl __isspace_l
.type __isspace_l, %function;
__isspace_l:
.globl isupper
.type isupper, %function;
isupper:
.weak isupper_l
.type isupper_l, %function;
isupper_l:
.globl __isupper_l
.type __isupper_l, %function;
__isupper_l:
.globl iswalnum
.type iswalnum, %function;
iswalnum:
.globl __iswalnum_l
.type __iswalnum_l, %function;
__iswalnum_l:
.weak iswalnum_l
.type iswalnum_l, %function;
iswalnum_l:
.globl iswalpha
.type iswalpha, %function;
iswalpha:
.globl __iswalpha_l
.type __iswalpha_l, %function;
__iswalpha_l:
.weak iswalpha_l
.type iswalpha_l, %function;
iswalpha_l:
.globl iswblank
.type iswblank, %function;
iswblank:
.globl __iswblank_l
.type __iswblank_l, %function;
__iswblank_l:
.weak iswblank_l
.type iswblank_l, %function;
iswblank_l:
.globl iswcntrl
.type iswcntrl, %function;
iswcntrl:
.globl __iswcntrl_l
.type __iswcntrl_l, %function;
__iswcntrl_l:
.weak iswcntrl_l
.type iswcntrl_l, %function;
iswcntrl_l:
.globl iswctype
.type iswctype, %function;
iswctype:
.globl wctype
.type wctype, %function;
wctype:
.globl __iswctype_l
.type __iswctype_l, %function;
__iswctype_l:
.weak iswctype_l
.type iswctype_l, %function;
iswctype_l:
.globl __wctype_l
.type __wctype_l, %function;
__wctype_l:
.weak wctype_l
.type wctype_l, %function;
wctype_l:
.globl iswdigit
.type iswdigit, %function;
iswdigit:
.globl __iswdigit_l
.type __iswdigit_l, %function;
__iswdigit_l:
.weak iswdigit_l
.type iswdigit_l, %function;
iswdigit_l:
.globl iswgraph
.type iswgraph, %function;
iswgraph:
.globl __iswgraph_l
.type __iswgraph_l, %function;
__iswgraph_l:
.weak iswgraph_l
.type iswgraph_l, %function;
iswgraph_l:
.globl iswlower
.type iswlower, %function;
iswlower:
.weak iswlower_l
.type iswlower_l, %function;
iswlower_l:
.globl __iswlower_l
.type __iswlower_l, %function;
__iswlower_l:
.globl iswprint
.type iswprint, %function;
iswprint:
.globl __iswprint_l
.type __iswprint_l, %function;
__iswprint_l:
.weak iswprint_l
.type iswprint_l, %function;
iswprint_l:
.globl iswpunct
.type iswpunct, %function;
iswpunct:
.globl __iswpunct_l
.type __iswpunct_l, %function;
__iswpunct_l:
.weak iswpunct_l
.type iswpunct_l, %function;
iswpunct_l:
.globl iswspace
.type iswspace, %function;
iswspace:
.globl __iswspace_l
.type __iswspace_l, %function;
__iswspace_l:
.weak iswspace_l
.type iswspace_l, %function;
iswspace_l:
.globl iswupper
.type iswupper, %function;
iswupper:
.globl __iswupper_l
.type __iswupper_l, %function;
__iswupper_l:
.weak iswupper_l
.type iswupper_l, %function;
iswupper_l:
.globl iswxdigit
.type iswxdigit, %function;
iswxdigit:
.globl __iswxdigit_l
.type __iswxdigit_l, %function;
__iswxdigit_l:
.weak iswxdigit_l
.type iswxdigit_l, %function;
iswxdigit_l:
.globl isxdigit
.type isxdigit, %function;
isxdigit:
.globl __isxdigit_l
.type __isxdigit_l, %function;
__isxdigit_l:
.weak isxdigit_l
.type isxdigit_l, %function;
isxdigit_l:
.globl toascii
.type toascii, %function;
toascii:
.globl tolower
.type tolower, %function;
tolower:
.globl __tolower_l
.type __tolower_l, %function;
__tolower_l:
.weak tolower_l
.type tolower_l, %function;
tolower_l:
.globl toupper
.type toupper, %function;
toupper:
.weak toupper_l
.type toupper_l, %function;
toupper_l:
.globl __toupper_l
.type __toupper_l, %function;
__toupper_l:
.globl towlower
.type towlower, %function;
towlower:
.globl towupper
.type towupper, %function;
towupper:
.globl __towupper_l
.type __towupper_l, %function;
__towupper_l:
.weak towupper_l
.type towupper_l, %function;
towupper_l:
.globl __towlower_l
.type __towlower_l, %function;
__towlower_l:
.weak towlower_l
.type towlower_l, %function;
towlower_l:
.globl wcswidth
.type wcswidth, %function;
wcswidth:
.globl wctrans
.type wctrans, %function;
wctrans:
.globl towctrans
.type towctrans, %function;
towctrans:
.globl __wctrans_l
.type __wctrans_l, %function;
__wctrans_l:
.weak wctrans_l
.type wctrans_l, %function;
wctrans_l:
.weak towctrans_l
.type towctrans_l, %function;
towctrans_l:
.globl __towctrans_l
.type __towctrans_l, %function;
__towctrans_l:
.globl wcwidth
.type wcwidth, %function;
wcwidth:
.globl alphasort
.type alphasort, %function;
alphasort:
.weak alphasort64
.type alphasort64, %function;
alphasort64:
.globl closedir
.type closedir, %function;
closedir:
.globl dirfd
.type dirfd, %function;
dirfd:
.globl fdopendir
.type fdopendir, %function;
fdopendir:
.globl opendir
.type opendir, %function;
opendir:
.globl readdir
.type readdir, %function;
readdir:
.weak readdir64
.type readdir64, %function;
readdir64:
.weak readdir64_r
.type readdir64_r, %function;
readdir64_r:
.globl readdir_r
.type readdir_r, %function;
readdir_r:
.globl rewinddir
.type rewinddir, %function;
rewinddir:
.weak scandir64
.type scandir64, %function;
scandir64:
.globl scandir
.type scandir, %function;
scandir:
.globl seekdir
.type seekdir, %function;
seekdir:
.globl telldir
.type telldir, %function;
telldir:
.globl versionsort
.type versionsort, %function;
versionsort:
.weak versionsort64
.type versionsort64, %function;
versionsort64:
.weak _init
.type _init, %function;
_init:
.globl __libc_start_main
.type __libc_start_main, %function;
__libc_start_main:
.globl __stack_chk_fail
.type __stack_chk_fail, %function;
__stack_chk_fail:
.globl clearenv
.type clearenv, %function;
clearenv:
.globl getenv
.type getenv, %function;
getenv:
.globl putenv
.type putenv, %function;
putenv:
.globl secure_getenv
.type secure_getenv, %function;
secure_getenv:
.globl setenv
.type setenv, %function;
setenv:
.globl unsetenv
.type unsetenv, %function;
unsetenv:
.globl __errno_location
.type __errno_location, %function;
__errno_location:
.weak strerror_l
.type strerror_l, %function;
strerror_l:
.globl __strerror_l
.type __strerror_l, %function;
__strerror_l:
.globl strerror
.type strerror, %function;
strerror:
.globl _Exit
.type _Exit, %function;
_Exit:
.globl abort
.type abort, %function;
abort:
.globl __assert_fail
.type __assert_fail, %function;
__assert_fail:
.globl at_quick_exit
.type at_quick_exit, %function;
at_quick_exit:
.globl __cxa_finalize
.type __cxa_finalize, %function;
__cxa_finalize:
.globl __cxa_atexit
.type __cxa_atexit, %function;
__cxa_atexit:
.globl atexit
.type atexit, %function;
atexit:
.weak _fini
.type _fini, %function;
_fini:
.globl exit
.type exit, %function;
exit:
.globl quick_exit
.type quick_exit, %function;
quick_exit:
.globl creat
.type creat, %function;
creat:
.weak creat64
.type creat64, %function;
creat64:
.globl fcntl
.type fcntl, %function;
fcntl:
.weak open64
.type open64, %function;
open64:
.globl open
.type open, %function;
open:
.weak openat64
.type openat64, %function;
openat64:
.globl openat
.type openat, %function;
openat:
.weak posix_fadvise64
.type posix_fadvise64, %function;
posix_fadvise64:
.globl posix_fadvise
.type posix_fadvise, %function;
posix_fadvise:
.weak posix_fallocate64
.type posix_fallocate64, %function;
posix_fallocate64:
.globl posix_fallocate
.type posix_fallocate, %function;
posix_fallocate:
.globl __flt_rounds
.type __flt_rounds, %function;
__flt_rounds:
.globl fegetexceptflag
.type fegetexceptflag, %function;
fegetexceptflag:
.globl feholdexcept
.type feholdexcept, %function;
feholdexcept:
.globl fesetexceptflag
.type fesetexceptflag, %function;
fesetexceptflag:
.globl fesetround
.type fesetround, %function;
fesetround:
.globl feupdateenv
.type feupdateenv, %function;
feupdateenv:
.globl feclearexcept
.type feclearexcept, %function;
feclearexcept:
.globl feraiseexcept
.type feraiseexcept, %function;
feraiseexcept:
.globl fetestexcept
.type fetestexcept, %function;
fetestexcept:
.globl fegetround
.type fegetround, %function;
fegetround:
.globl fegetenv
.type fegetenv, %function;
fegetenv:
.globl fesetenv
.type fesetenv, %function;
fesetenv:
.globl ftok
.type ftok, %function;
ftok:
.globl msgctl
.type msgctl, %function;
msgctl:
.globl msgget
.type msgget, %function;
msgget:
.globl msgrcv
.type msgrcv, %function;
msgrcv:
.globl msgsnd
.type msgsnd, %function;
msgsnd:
.globl semctl
.type semctl, %function;
semctl:
.globl semget
.type semget, %function;
semget:
.globl semop
.type semop, %function;
semop:
.globl semtimedop
.type semtimedop, %function;
semtimedop:
.globl shmat
.type shmat, %function;
shmat:
.globl shmctl
.type shmctl, %function;
shmctl:
.globl shmdt
.type shmdt, %function;
shmdt:
.globl shmget
.type shmget, %function;
shmget:
.globl dlclose
.type dlclose, %function;
dlclose:
.globl dlerror
.type dlerror, %function;
dlerror:
.globl dlinfo
.type dlinfo, %function;
dlinfo:
.globl dlsym
.type dlsym, %function;
dlsym:
.globl cuserid
.type cuserid, %function;
cuserid:
.globl daemon
.type daemon, %function;
daemon:
.globl vwarn
.type vwarn, %function;
vwarn:
.globl vwarnx
.type vwarnx, %function;
vwarnx:
.globl verr
.type verr, %function;
verr:
.globl verrx
.type verrx, %function;
verrx:
.globl warn
.type warn, %function;
warn:
.globl warnx
.type warnx, %function;
warnx:
.globl err
.type err, %function;
err:
.globl errx
.type errx, %function;
errx:
.globl euidaccess
.type euidaccess, %function;
euidaccess:
.weak eaccess
.type eaccess, %function;
eaccess:
.weak ftw64
.type ftw64, %function;
ftw64:
.globl ftw
.type ftw, %function;
ftw:
.globl futimes
.type futimes, %function;
futimes:
.globl getdtablesize
.type getdtablesize, %function;
getdtablesize:
.globl getloadavg
.type getloadavg, %function;
getloadavg:
.globl getpagesize
.type getpagesize, %function;
getpagesize:
.globl getpass
.type getpass, %function;
getpass:
.globl endusershell
.type endusershell, %function;
endusershell:
.globl setusershell
.type setusershell, %function;
setusershell:
.globl getusershell
.type getusershell, %function;
getusershell:
.globl isastream
.type isastream, %function;
isastream:
.globl lutimes
.type lutimes, %function;
lutimes:
.globl ulimit
.type ulimit, %function;
ulimit:
.weak endutent
.type endutent, %function;
endutent:
.globl endutxent
.type endutxent, %function;
endutxent:
.weak setutent
.type setutent, %function;
setutent:
.globl setutxent
.type setutxent, %function;
setutxent:
.globl getutxent
.type getutxent, %function;
getutxent:
.weak getutent
.type getutent, %function;
getutent:
.weak getutid
.type getutid, %function;
getutid:
.globl getutxid
.type getutxid, %function;
getutxid:
.weak getutline
.type getutline, %function;
getutline:
.globl getutxline
.type getutxline, %function;
getutxline:
.weak pututline
.type pututline, %function;
pututline:
.globl pututxline
.type pututxline, %function;
pututxline:
.weak updwtmp
.type updwtmp, %function;
updwtmp:
.globl updwtmpx
.type updwtmpx, %function;
updwtmpx:
.weak utmpxname
.type utmpxname, %function;
utmpxname:
.weak utmpname
.type utmpname, %function;
utmpname:
.globl valloc
.type valloc, %function;
valloc:
.globl adjtime
.type adjtime, %function;
adjtime:
.globl adjtimex
.type adjtimex, %function;
adjtimex:
.globl brk
.type brk, %function;
brk:
#if !defined(ARCH_mips) && !defined(ARCH_i386) && !defined(ARCH_x86_64) && !defined(ARCH_powerpc) && !defined(ARCH_powerpc64) && !defined(ARCH_aarch64)
.weak riscv_flush_icache
.type riscv_flush_icache, %function;
riscv_flush_icache:
#endif
#if !defined(ARCH_mips) && !defined(ARCH_i386) && !defined(ARCH_x86_64) && !defined(ARCH_powerpc) && !defined(ARCH_powerpc64) && !defined(ARCH_aarch64)
.globl __riscv_flush_icache
.type __riscv_flush_icache, %function;
0