
Leave the name section in the output when using the --strip-debug flag. This treats it more like ELF symbol tables, as the name section has similar uses at runtime (e.g. wasm engines understand it and it can be used for symbolization at runtime). Fixes https://github.com/emscripten-core/emscripten/issues/14623 Differential Revision: https://reviews.llvm.org/D106728
11 lines
329 B
Plaintext
11 lines
329 B
Plaintext
RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/start.s -o %t.start.o
|
|
RUN: wasm-ld --strip-debug -o %t.wasm %t.start.o
|
|
RUN: obj2yaml %t.wasm | FileCheck %s
|
|
|
|
# Test alias -S
|
|
RUN: wasm-ld -S -o %t.wasm %t.start.o
|
|
RUN: obj2yaml %t.wasm | FileCheck %s
|
|
|
|
# Check that there is a name section
|
|
CHECK: Name: name
|