- 论坛徽章:
- 0
|
我想在linux下生成传统的a.out可执行文件,用了如下命令:
gcc test.c
就得到一个a.out文件,但是我用readelf命令看了一下这个a.out,发现它还是elf格式的:
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: Intel 80386
Version: 0x1
Entry point address: 0x80482d0
Start of program headers: 52 (bytes into file)
Start of section headers: 4416 (bytes into file)
Flags: 0x0
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 8
Size of section headers: 40 (bytes)
Number of section headers: 37
Section header string table index: 34
请教一下各位,怎样才可以生成正宗的a.out可执行文件呢? |
|