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_typein ELF file header.
Class Method Details
.mapping(type) ⇒ String
Return the type name according to e_type in ELF file header.
203 204 205 206 207 208 209 210 211 212 |
# File 'lib/elftools/constants.rb', line 203 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 |