diff --git a/stdlib/public/Resources/wasi/static-executable-args.lnk b/stdlib/public/Resources/wasi/static-executable-args.lnk index 1500f94f891a8..59f938fbab3be 100644 --- a/stdlib/public/Resources/wasi/static-executable-args.lnk +++ b/stdlib/public/Resources/wasi/static-executable-args.lnk @@ -7,5 +7,4 @@ -lwasi-emulated-signal -lwasi-emulated-process-clocks -Xlinker --error-limit=0 --Xlinker --no-gc-sections -Xlinker --threads=1 diff --git a/stdlib/public/runtime/SwiftRT-ELF-WASM.cpp b/stdlib/public/runtime/SwiftRT-ELF-WASM.cpp index 1ccd53294b701..f15c6e276a410 100644 --- a/stdlib/public/runtime/SwiftRT-ELF-WASM.cpp +++ b/stdlib/public/runtime/SwiftRT-ELF-WASM.cpp @@ -38,7 +38,7 @@ static const void *__backtraceRef __attribute__((used)) #if defined(__ELF__) # define DECLARE_EMPTY_METADATA_SECTION(name) __asm__("\t.section " #name ",\"a\"\n"); #elif defined(__wasm__) -# define DECLARE_EMPTY_METADATA_SECTION(name) __asm__("\t.section " #name ",\"\",@\n"); +# define DECLARE_EMPTY_METADATA_SECTION(name) __asm__("\t.section " #name ",\"R\",@\n"); #endif #define DECLARE_SWIFT_SECTION(name) \