Open
Description
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.