Skip to content

Instantly share code, notes, and snippets.

@ryo
Last active November 19, 2021 09:10
Show Gist options
  • Save ryo/a2da81b3cdf77bac9ac6ddb563c6a0d1 to your computer and use it in GitHub Desktop.
Save ryo/a2da81b3cdf77bac9ac6ddb563c6a0d1 to your computer and use it in GitHub Desktop.
download from https://busybox.net/
# file busybox-armv7l
busybox-armv7l: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, stripped
# readelf -a busybox-armv7l
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: 0x1e978
Start of program headers: 52 (bytes into file)
Start of section headers: 1151656 (bytes into file)
Flags: 0x5000400, Version5 EABI, hard-float ABI
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 4
Size of section headers: 40 (bytes)
Number of section headers: 14
Section header string table index: 13
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al
[ 0] NULL 00000000 000000 000000 00 0 0 0
[ 1] .init PROGBITS 000100b4 0000b4 00000c 00 AX 0 0 4
[ 2] .text PROGBITS 000100c0 0000c0 0ee794 00 AX 0 0 8
[ 3] .fini PROGBITS 000fe854 0ee854 00000c 00 AX 0 0 4
[ 4] .rodata PROGBITS 000fe860 0ee860 02a49b 00 A 0 0 8
[ 5] .ARM.exidx ARM_EXIDX 00128cfc 118cfc 000008 00 AL 2 0 4
[ 6] .eh_frame PROGBITS 00128d04 118d04 000004 00 A 0 0 4
[ 7] .init_array INIT_ARRAY 00139000 119000 000004 04 WA 0 0 4
[ 8] .fini_array FINI_ARRAY 00139004 119004 000004 04 WA 0 0 4
[ 9] .jcr PROGBITS 00139008 119008 000004 00 WA 0 0 4
[10] .data PROGBITS 00139010 119010 0001f1 00 WA 0 0 8
[11] .bss NOBITS 00139208 119201 001574 00 WA 0 0 8
[12] .ARM.attributes ARM_ATTRIBUTES 00000000 119201 000033 00 0 0 1
[13] .shstrtab STRTAB 00000000 119234 000072 00 0 0 1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
L (link order), O (extra OS processing required), G (group), T (TLS),
C (compressed), x (unknown), o (OS specific), E (exclude),
y (purecode), p (processor specific)
There are no section groups in this file.
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
EXIDX 0x118cfc 0x00128cfc 0x00128cfc 0x00008 0x00008 R 0x4
LOAD 0x000000 0x00010000 0x00010000 0x118d08 0x118d08 R E 0x10000
LOAD 0x119000 0x00139000 0x00139000 0x00201 0x0177c RW 0x10000
GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x10
Section to Segment mapping:
Segment Sections...
00 .ARM.exidx
01 .init .text .fini .rodata .ARM.exidx .eh_frame
02 .init_array .fini_array .jcr .data .bss
03
There is no dynamic section in this file.
There are no relocations in this file.
Unwind section '.ARM.exidx' at offset 0x118cfc contains 1 entry:
0xe444c: 0x1 [cantunwind]
No version information found in this file.
Attribute Section: aeabi
File Attributes
Tag_CPU_name: "7-A"
Tag_CPU_arch: v7
Tag_CPU_arch_profile: Application
Tag_ARM_ISA_use: Yes
Tag_THUMB_ISA_use: Thumb-2
Tag_FP_arch: VFPv2
Tag_ABI_PCS_wchar_t: 4
Tag_ABI_FP_rounding: Needed
Tag_ABI_FP_denormal: Needed
Tag_ABI_FP_exceptions: Needed
Tag_ABI_FP_number_model: IEEE 754
Tag_ABI_align_needed: 8-byte
Tag_ABI_enum_size: int
Tag_ABI_VFP_args: VFP registers
Tag_ABI_optimization_goals: Aggressive Size
Tag_CPU_unaligned_access: v6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment