我试图在Windows子系统Linux上尝试使用32位ELF可执行文件,但它失败并出现错误"无法执行二进制文件:执行格式错误"。
是因为它是32位ELF文件吗? 如果是这样,如何在WSL下执行它? (它在普通的64位Linux机器上运行良好)。
这里是LEF标题:
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 4c 69 6e 75 78 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 76
Type: EXEC (Executable file)
Machine: Intel 80386
Version: 0x1
Entry point address: 0x8048080
Start of program headers: 52 (bytes into file)
Start of section headers: 0 (bytes into file)
Flags: 0x0
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 2
Size of section headers: 0 (bytes)
Number of section headers: 0
Section header string table index: 0