Skip to content

Commit 05b3b87

Browse files
authored
make __get_tp() a static function (#327)
I'm not sure if the function really has to be exported. If so, we should probably move it to a separate compilation unit, otherwise it will be defined multiple times (e.g. in `strerror.o` and `__lctrans.o`) causing linker errors. However, I don't see a reason (at least for now) to export this function, therefore making it static in this PR.
1 parent c40403f commit 05b3b87

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

expected/wasm32-wasi/posix/defined-symbols.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ __fwritable
7979
__fwritex
8080
__fwriting
8181
__get_locale
82-
__get_tp
8382
__getdelim
8483
__getentropy
8584
__getopt_msg

libc-top-half/musl/arch/wasm32/pthread_arch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
uintptr_t __get_tp(void) {
1+
static inline uintptr_t __get_tp(void) {
22
#if _REENTRANT
33
int val;
44
__asm__("global.get __wasilibc_pthread_self\n"

0 commit comments

Comments
 (0)