[all-commits] [llvm/llvm-project] db69ea: [llvm-objdump][WebAssembly] Fix llvm-objdump on fi...

Andy Wingo via All-commits all-commits at lists.llvm.org
Mon Jul 19 00:22:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: db69ea40a91a683a4b1a2d581c5b5a2b46154677
      https://github.com/llvm/llvm-project/commit/db69ea40a91a683a4b1a2d581c5b5a2b46154677
  Author: Andy Wingo <wingo at igalia.com>
  Date:   2021-07-19 (Mon, 19 Jul 2021)

  Changed paths:
    A llvm/test/tools/llvm-objdump/wasm/executable-without-symbols-debugnames.test
    A llvm/test/tools/llvm-objdump/wasm/executable-without-symbols.test
    M llvm/tools/llvm-objdump/llvm-objdump.cpp

  Log Message:
  -----------
  [llvm-objdump][WebAssembly] Fix llvm-objdump on files without symbols

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.

Differential Revision: https://reviews.llvm.org/D105539




More information about the All-commits mailing list