Skip to content

[llvm-objdump] Invalid/Unsupported object file format #67634

@CarlosAlbertoEnciso

Description

@CarlosAlbertoEnciso

Using the given test case:

// test.cpp
int add(int First, int Second) {
  return First + Second;
}

and the command options:

clang -g -O0 --target=wasm64 -nostdlib -Wl,--no-entry -Wl,--export-all -o test.wasm test.cpp
llvm-objdump test.wasm --file-headers

it shows the error message

llvm-objdump: error: 'test.wasm': Invalid/Unsupported object file format

The error message is displayed for both targets wasm64 and wasm32.

However, other options such as: --disassemble, --headers, --full-contents recognize the format and display correct information.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions