]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[PowerPC64] readelf: print description for 'e_flags' in ELF header (ABI type)
authorluporl <luporl@FreeBSD.org>
Fri, 28 Jun 2019 16:00:55 +0000 (16:00 +0000)
committerluporl <luporl@FreeBSD.org>
Fri, 28 Jun 2019 16:00:55 +0000 (16:00 +0000)
commitc0d9f65d2d4d653fd7b2545dbcb5a8a436bab93d
treeae37a2c0fce34a495fbea599015690981cf8aa02
parent313a7febbb346c95212db22a930e16b6c8552ce1
[PowerPC64] readelf: print description for 'e_flags' in ELF header (ABI type)

This prints out description text with the meaning of 'Flags' value in PowerPC64.

Example:

$ readelf -h ~/tmp/t1-Flag2
ELF Header:

Magic:   7f 45 4c 46 02 02 01 09 00 00 00 00 00 00 00 00
Class:                             ELF64
Data:                              2's complement, big endian
Version:                           1 (current)
OS/ABI:                            FreeBSD
ABI Version:                       0
Type:                              EXEC (Executable file)
Machine:                           PowerPC 64-bit
Version:                           0x1
Entry point address:               0x10010000
Start of program headers:          64 (bytes into file)
Start of section headers:          209368 (bytes into file)
Flags:                             0x2, OpenPOWER ELF V2 ABI
Size of this header:               64 (bytes)
Size of program headers:           56 (bytes)
Number of program headers:         10
Size of section headers:           64 (bytes)
Number of section headers:         34
Section header string table index: 31

Submitted by:  alfredo.junior_eldorado.org.br
Reviewed by: luporl
Differential Revision: https://reviews.freebsd.org/D20782
contrib/elftoolchain/readelf/readelf.c