]> git.proxmox.com Git - wasi-libc.git/commitdiff
Include libwasi-emulated-*.a symbols in defined-symbols.txt.
authorDan Gohman <dev@sunfishcode.online>
Mon, 22 Mar 2021 20:17:38 +0000 (13:17 -0700)
committerDan Gohman <dev@sunfishcode.online>
Tue, 23 Mar 2021 17:34:46 +0000 (10:34 -0700)
Makefile
expected/wasm32-wasi/defined-symbols.txt

index 818490ce715f7304c2885564089c92adb3195d76..57c03f48b195da04b09087993088b8997c827acb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -463,7 +463,7 @@ finish: startup_files libc
        @# LLVM PR40497, which is fixed in 9.0, but not in 8.0.
        @# Ignore certain llvm builtin symbols such as those starting with __mul
        @# since these dependencies can vary between llvm versions.
-       "$(WASM_NM)" --defined-only "$(SYSROOT_LIB)"/libc.a "$(SYSROOT_LIB)"/*.o \
+       "$(WASM_NM)" --defined-only "$(SYSROOT_LIB)"/libc.a "$(SYSROOT_LIB)"/libwasi-emulated-*.a "$(SYSROOT_LIB)"/*.o \
            |grep ' [[:upper:]] ' |sed 's/.* [[:upper:]] //' |LC_ALL=C sort > "$(SYSROOT_SHARE)/defined-symbols.txt"
        for undef_sym in $$("$(WASM_NM)" --undefined-only "$(SYSROOT_LIB)"/libc.a "$(SYSROOT_LIB)"/libc-*.a "$(SYSROOT_LIB)"/*.o \
            |grep ' U ' |sed 's/.* U //' |LC_ALL=C sort |uniq); do \
index 3c4dd1bce853a483148fd1353aaaa43bdbd82abe..850fce17986b1fd0c7baa58f7b7f7557a7a20437 100644 (file)
@@ -11,11 +11,14 @@ _IO_putc
 _IO_putc_unlocked
 __EINVAL
 __ENOMEM
+__SIG_ERR
+__SIG_IGN
 __asctime_r
 __assert_fail
 __c_dot_utf8
 __c_dot_utf8_locale
 __c_locale
+__clock
 __clock_gettime
 __cos
 __cosdf
@@ -232,6 +235,7 @@ __strtoull_internal
 __strtoumax_internal
 __strxfrm_l
 __sysinfo
+__sysv_signal
 __tan
 __tandf
 __tanl
@@ -392,6 +396,7 @@ atoll
 basename
 bcmp
 bcopy
+bsd_signal
 bsearch
 btowc
 bzero
@@ -447,6 +452,7 @@ cimagl
 clearenv
 clearerr
 clearerr_unlocked
+clock
 clock_getres
 clock_gettime
 clock_nanosleep
@@ -663,6 +669,7 @@ getline
 getopt
 getopt_long
 getopt_long_only
+getrusage
 getsockopt
 getsubopt
 gettimeofday
@@ -841,10 +848,12 @@ memset
 mkdir
 mkdirat
 mktime
+mmap
 modf
 modff
 modfl
 mrand48
+munmap
 nan
 nanf
 nanl
@@ -896,6 +905,7 @@ printf
 program_invocation_name
 program_invocation_short_name
 pselect
+psignal
 putc
 putc_unlocked
 putchar
@@ -911,6 +921,7 @@ pwrite
 pwritev
 qsort
 quick_exit
+raise
 rand
 rand_r
 random
@@ -972,6 +983,7 @@ setlocale
 setstate
 setvbuf
 shutdown
+signal
 signgam
 significand
 significandf
@@ -1033,6 +1045,7 @@ strpbrk
 strptime
 strrchr
 strsep
+strsignal
 strspn
 strstr
 strtod
@@ -1073,6 +1086,7 @@ tgammaf
 tgammal
 time
 timegm
+times
 timespec_get
 toascii
 tolower