我正在尝试将一个elf文件放入内存然后执行它,这些是以下步骤:
1-文件放入内存
int main()
{
printf("Hello world! \n");
return 0;
}
Run Code Online (Sandbox Code Playgroud)
2-编译它 gcc -o hello hello.c -static
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: ARM
Version: 0x1
Entry point address: 0x8120
Start of program headers: 52 (bytes into file)
Start of section headers: 119864 (bytes …Run Code Online (Sandbox Code Playgroud)