File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -451,12 +451,14 @@ finish: startup_files libc
451
451
# Collect symbol information.
452
452
# TODO: Use llvm-nm --extern-only instead of grep. This is blocked on
453
453
# LLVM PR40497, which is fixed in 9.0, but not in 8.0.
454
+ # Ignore certain llvm builtin symbols such as those starting with __mul
455
+ # since these dependencies can vary between llvm versions.
454
456
"$(WASM_NM)" --defined-only "$(SYSROOT_LIB)"/libc.a "$(SYSROOT_LIB)"/*.o \
455
457
|grep ' [[:upper:]] ' |sed 's/.* [[:upper:]] //' |LC_ALL=C sort > "$(SYSROOT_SHARE)/defined-symbols.txt"
456
458
for undef_sym in $$("$(WASM_NM)" --undefined-only "$(SYSROOT_LIB)"/*.a "$(SYSROOT_LIB)"/*.o \
457
459
|grep ' U ' |sed 's/.* U //' |LC_ALL=C sort |uniq); do \
458
460
grep -q '\<'$$undef_sym'\>' "$(SYSROOT_SHARE)/defined-symbols.txt" || echo $$undef_sym; \
459
- done > "$(SYSROOT_SHARE)/undefined-symbols.txt"
461
+ done | grep -v "^__mul" > "$(SYSROOT_SHARE)/undefined-symbols.txt"
460
462
grep '^_*wasi_' "$(SYSROOT_SHARE)/undefined-symbols.txt" \
461
463
> "$(SYSROOT_LIB)/libc.imports"
462
464
Original file line number Diff line number Diff line change @@ -12,11 +12,6 @@ __getf2
12
12
__gttf2
13
13
__letf2
14
14
__lttf2
15
- __muldc3
16
- __muloti4
17
- __mulsc3
18
- __multc3
19
- __multf3
20
15
__netf2
21
16
__stack_pointer
22
17
__subtf3
You can’t perform that action at this time.
0 commit comments