[PATCH] D105539: [llvm-objdump][WebAssembly] Fix llvm-objdump on files without symbols
Andy Wingo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 7 02:16:08 PDT 2021
wingo created this revision.
wingo added a reviewer: sbc100.
Herald added subscribers: ecnelises, rupprecht, sunfish, jgravelle-google, dschuff.
Herald added a reviewer: jhenderson.
Herald added a reviewer: MaskRay.
wingo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
If a file has no symbols, perhaps because it is a linked executable,
synthesize some symbols by walking the code section. Otherwise the
disassembler will try to treat the whole code section as a function,
which won't parse. Fixes https://bugs.llvm.org/show_bug.cgi?id=50957.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D105539
Files:
llvm/test/tools/llvm-objdump/wasm/Inputs/main.wasm
llvm/test/tools/llvm-objdump/wasm/executable-without-symbols.test
llvm/tools/llvm-objdump/llvm-objdump.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105539.356901.patch
Type: text/x-patch
Size: 7132 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210707/e40f2769/attachment.bin>
More information about the llvm-commits
mailing list