]> git.proxmox.com Git - wasi-libc.git/commit
Use MUSL's `weak*` feature in bottom half (#306)
authorAndrew Brown <andrew.brown@intel.com>
Tue, 26 Jul 2022 21:15:12 +0000 (14:15 -0700)
committerGitHub <noreply@github.com>
Tue, 26 Jul 2022 21:15:12 +0000 (14:15 -0700)
commit87c2aa043db32e2378eb479b8df5a002c67bc4de
tree6271839a2e50edc6add66296e1338320d97af9f6
parent60f221a400e36ba59d99c191a86e978117320f0a
Use MUSL's `weak*` feature in bottom half (#306)

This change extracts the `weak*`-related parts of #303 as a separate PR.
Note that this is slightly strange in that it uses some top-half MUSL
headers in the bottom-half code, but discussion around this led me to
believe that the advantages of, e.g., `LOCK` made this worthwhile.
Beyond just changing uses of `weak` to `__weak__`, we also MUSL's `weak`
and `weak_alias` macros in a few more places.
Makefile
libc-bottom-half/cloudlibc/src/libc/time/clock_gettime.c
libc-bottom-half/cloudlibc/src/libc/unistd/lseek.c
libc-bottom-half/headers/public/wasi/libc-find-relpath.h
libc-bottom-half/sources/__main_void.c
libc-bottom-half/sources/__wasilibc_initialize_environ.c
libc-bottom-half/sources/environ.c
libc-bottom-half/sources/getentropy.c