Module: ELFTools::Constants::ET
- Included in:
- ELFTools::Constants
- Defined in:
- lib/elftools/constants.rb
Overview
This module defines ELF file types.
Constant Summary collapse
- ET_NONE =
no file type
0
- ET_REL =
relocatable file
1
- ET_EXEC =
executable file
2
- ET_DYN =
shared object
3
- ET_CORE =
core file
4
Class Method Summary collapse
-
.mapping(type) ⇒ String
Return the type name according to
e_type
in ELF file header.
Class Method Details
.mapping(type) ⇒ String
Return the type name according to e_type
in ELF file header.
454 455 456 457 458 459 460 461 462 463 |
# File 'lib/elftools/constants.rb', line 454 def self.mapping(type) case type when Constants::ET_NONE then 'NONE' when Constants::ET_REL then 'REL' when Constants::ET_EXEC then 'EXEC' when Constants::ET_DYN then 'DYN' when Constants::ET_CORE then 'CORE' else '<unknown>' end end |