Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hanetzer/b99db85aaebec6d02d7f6701f005cc36 to your computer and use it in GitHub Desktop.
Save hanetzer/b99db85aaebec6d02d7f6701f005cc36 to your computer and use it in GitHub Desktop.
$ powerpc64le-unknown-linux-gnu-readelf -e build/cbfs/fallback/bootblock.debug;
$ powerpc64le-unknown-linux-gnu-readelf -e build/cbfs/fallback/bootblock.debug
ELF Header:
Magic: 7f 45 4c 46 02 02 01 00 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, big endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: PowerPC64
Version: 0x1
Entry point address: 0x0
Start of program headers: 64 (bytes into file)
Start of section headers: 525768 (bytes into file)
Flags: 0x2, abiv2
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 1
Size of section headers: 64 (bytes)
Number of section headers: 23
Section header string table index: 22
Section Headers:
[Nr] Name Type Address Offset
Size EntSize Flags Link Info Align
[ 0] NULL 0000000000000000 00000000
0000000000000000 0000000000000000 0 0 0
[ 1] .text PROGBITS 0000000000000000 00000078
0000000000004c90 0000000000000000 AX 0 0 8
[ 2] .rela.text RELA 0000000000000000 00040ec8
00000000000026a0 0000000000000018 I 20 1 8
[ 3] .sfpr PROGBITS 0000000000004c90 00004d08
00000000000000b8 0000000000000000 AX 0 0 4
[ 4] .data PROGBITS 0000000000004d48 00004dc0
0000000000000098 0000000000000000 WA 0 0 8
[ 5] .rela.data RELA 0000000000000000 00043568
0000000000000030 0000000000000018 I 20 4 8
[ 6] .bss NOBITS 0000000000004de0 00004e58
0000000000000058 0000000000000000 WA 0 0 8
[ 7] .got PROGBITS 0000000000010000 00010078
0000000000000000 0000000000000000 WA 0 0 8
[ 8] .debug_info PROGBITS 0000000000000000 00010078
00000000000138ce 0000000000000000 0 0 1
[ 9] .rela.debug_info RELA 0000000000000000 00043598
0000000000023d78 0000000000000018 I 20 8 8
[10] .debug_abbrev PROGBITS 0000000000000000 00023946
0000000000003db4 0000000000000000 0 0 1
[11] .debug_loc PROGBITS 0000000000000000 000276fa
000000000000b38d 0000000000000000 0 0 1
[12] .rela.debug_loc RELA 0000000000000000 00067310
0000000000013290 0000000000000018 I 20 11 8
[13] .debug_aranges PROGBITS 0000000000000000 00032a90
0000000000000c40 0000000000000000 0 0 16
[14] .rela.debug_[...] RELA 0000000000000000 0007a5a0
0000000000000f90 0000000000000018 I 20 13 8
[15] .debug_ranges PROGBITS 0000000000000000 000336d0
0000000000001d20 0000000000000000 0 0 16
[16] .rela.debug_[...] RELA 0000000000000000 0007b530
0000000000004320 0000000000000018 I 20 15 8
[17] .debug_line PROGBITS 0000000000000000 000353f0
0000000000005172 0000000000000000 0 0 1
[18] .rela.debug_line RELA 0000000000000000 0007f850
0000000000000cc0 0000000000000018 I 20 17 8
[19] .debug_str PROGBITS 0000000000000000 0003a562
0000000000004c23 0000000000000001 MS 0 0 1
[20] .symtab SYMTAB 0000000000000000 0003f188
0000000000001398 0000000000000018 21 109 8
[21] .strtab STRTAB 0000000000000000 00040520
00000000000009a8 0000000000000000 0 0 1
[22] .shstrtab STRTAB 0000000000000000 00080510
00000000000000b3 0000000000000000 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),
p (processor specific)
Program Headers:
Type Offset VirtAddr PhysAddr
FileSiz MemSiz Flags Align
LOAD 0x0000000000000078 0x0000000000000000 0x0000000000000000
0x0000000000010000 0x0000000000010000 RWE 0x8
Section to Segment mapping:
Segment Sections...
00 .text .sfpr .data .bss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment