分类: LINUX
2009-05-16 15:48:22
xiewei@xiewei-desktop disk $ file echo.ok echo.ok : ELF 32-bit LSB executable, ARM, version 1, dynamically linked (uses shared libs), stripped
xiewei@xiewei-desktop disk $ file echo.not.ok echo.not.ok: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), stripped
xiewei@xiewei-desktop disk $ readelf -h echo.ok ELF Header: Magic: 7f 45 4c 46 01 01 01 61 00 00 00 00 00 00 00 00 Class: ELF32 Data: 2's complement, little endian Version: 1 (current) OS/ABI: ARM ABI Version: 0 Type: EXEC (Executable file) Machine: ARM Version: 0x1 Entry point address: 0xcdfc Start of program headers: 52 (bytes into file) Start of section headers: 563772 (bytes into file) Flags: 0x6, has entry point, GNU EABI, interworking enabled Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 5 Size of section headers: 40 (bytes) Number of section headers: 23 Section header string table index: 22
xiewei@xiewei-desktop disk $ readelf -h echo.not.ok 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: 0xf1a0 Start of program headers: 52 (bytes into file) Start of section headers: 546060 (bytes into file) Flags: 0x5000002, has entry point, Version5 EABI Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 7 Size of section headers: 40 (bytes) Number of section headers: 26 Section header string table index: 25