<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/67634>67634</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[llvm-objdump] Invalid/Unsupported object file format
</td>
</tr>
<tr>
<th>Labels</th>
<td>
tools:llvm-objdump
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
CarlosAlbertoEnciso
</td>
</tr>
</table>
<pre>
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
```
However, other options such as: `--disassemble, --headers, --full-contents` recognize the format and display correct information.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMU01vpDgQ_TXmYrkF5vvAoZPe1u5pD6tozwYX4Mi4kMt0JvPrR4Ykk4x6pJGQqCpe-b3nohSRmRxAx8oHVl4StYUZffeovEU62x58wL_cYAiTHvVr90TGTTzMwCdzA8cDUOCDImD5maUXlp5Zlb49RyqvTF533GlY16NoXOBKayabGF2Np8DkI4_JfzCg00y2nNUPB5pzD2Hz7gByJh_eUfkbgtWXu-TK6V3rgMsSY1yDQUe_0zpY5SYuJi7-TbkQQfkJAssvL4qWquDCIQVtTc_F_5bJRyEcCnDBv34U4NuKPghlLRd4mI7Nv9i39rYI7J_1tqyfQEKMxoKYQWnwdFehCZxmfKHdFXiPni9ApCa4C_9MxPLz0REDJusPXibrWPrH3ZQ1msnrk6NtjT5Ac-yfYQg8CuMj-kWFu0R_4wvcwMchYpjBv980p22YuaKds0qF0IYUESy9hQgWH273ZNysFQO6AC4Qq1LuYcDJme-wGz4E8DhJbWi16pUP6H0UaNzx0aA7HZIS3eW6zVuVQJdVbdk0WS2zZO5UXRdVqos8y8d01FlfF6CbsZbjWGbp2CSmk6nM01Y2aZWVWXuqs7pvi7Id2qapiqpkRQqLMvYU7_eEfkoM0QZdVVd5kVjVg6V9oaQMiDa6_zIJKeOq-W4v9ttErEitoUA_Dwwm2H0pvzSWlz8eU7J5280hrPvfvi_hZMK89acBFyav8dy3l1g9xnYmr7sPYvK6W_kRAAD__3WySmQ">