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.
This commit is contained in:
Marcin Kolny 2022-09-19 21:53:39 +01:00 committed by GitHub
parent c40403f9b0
commit 05b3b876e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -79,7 +79,6 @@ __fwritable
__fwritex
__fwriting
__get_locale
__get_tp
__getdelim
__getentropy
__getopt_msg

View File

@ -1,4 +1,4 @@
uintptr_t __get_tp(void) {
static inline uintptr_t __get_tp(void) {
#if _REENTRANT
int val;
__asm__("global.get __wasilibc_pthread_self\n"