This is an archive of the discontinued LLVM Phabricator instance.

[lld][WebAssembly] Do not remove name section with --strip-debug
ClosedPublic

Authored by dschuff on Jul 23 2021, 5:02 PM.

Details

Summary

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

Diff Detail

Event Timeline

dschuff created this revision.Jul 23 2021, 5:02 PM
dschuff requested review of this revision.Jul 23 2021, 5:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 23 2021, 5:02 PM
sbc100 accepted this revision.Jul 24 2021, 9:30 PM
This revision is now accepted and ready to land.Jul 24 2021, 9:30 PM