module ELFTools::Constants::ET

This module defines elf file types.

Constants

ET_CORE
ET_DYN
ET_EXEC
ET_NONE
ET_REL

Public Class Methods

mapping(type) click to toggle source

@return [String] Type in string format.

# 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