Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:FactoryCandidates
wasi-libc
ignore-wasm-macros-indirect-function-table.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ignore-wasm-macros-indirect-function-table.patch of Package wasi-libc
From 129ee9b64be8724745c4ebd45c21dcdc5fd23e22 Mon Sep 17 00:00:00 2001 From: Mike Hommey <mh@glandium.org> Date: Wed, 1 May 2024 23:30:33 +0900 Subject: [PATCH] Adjust Makefile for LLVM trunk (19) as of 2024-04-30 (#493) https://github.com/llvm/llvm-project/commit/5bbf1ea8f18d1f99637b7b8bf6b985c186c808f6 added __wasm_multivalue__ and __wasm_reference_types__, and the latter also makes libraries reference the undefined __indirect_function_table symbol, which is provided by the linker. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f9fd3030..b0407968 100644 --- a/Makefile +++ b/Makefile @@ -836,7 +836,7 @@ check-symbols: startup_files libc for undef_sym in $$("$(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 \ grep -q '\<'$$undef_sym'\>' "$(DEFINED_SYMBOLS)" || echo $$undef_sym; \ - done | grep -E -v "^__mul|__memory_base" > "$(UNDEFINED_SYMBOLS)" + done | grep -E -v "^__mul|__memory_base|__indirect_function_table" > "$(UNDEFINED_SYMBOLS)" grep '^_*imported_wasi_' "$(UNDEFINED_SYMBOLS)" \ > "$(SYSROOT_LIB)/libc.imports" @@ -878,6 +878,8 @@ check-symbols: startup_files libc @# for older versions. @# TODO: Undefine __wasm_mutable_globals__ and __wasm_sign_ext__, that are new to @# clang 16 for -mcpu=generic. + @# TODO: Undefine __wasm_multivalue__ and __wasm_reference_types__, that are new to + @# clang 19 for -mcpu=generic. @# TODO: As of clang 16, __GNUC_VA_LIST is #defined without a value. $(CC) $(CFLAGS) "$(SYSROOT_SHARE)/include-all.c" \ -isystem $(SYSROOT_INC) \ @@ -894,6 +896,8 @@ check-symbols: startup_files libc -U__clang_wide_literal_encoding__ \ -U__wasm_mutable_globals__ \ -U__wasm_sign_ext__ \ + -U__wasm_multivalue__ \ + -U__wasm_reference_types__ \ -U__GNUC__ \ -U__GNUC_MINOR__ \ -U__GNUC_PATCHLEVEL__ \
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor