fix names and requires to get some elf out again (still crashes though)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
module ELF
|
||||
module Elf
|
||||
module Constants
|
||||
ET_NONE = 0
|
||||
ET_REL = 1
|
||||
@@ -23,9 +23,9 @@ module ELF
|
||||
ELFCLASS32 = 1
|
||||
ELFCLASS64 = 2
|
||||
|
||||
ELFDATANONE = 0
|
||||
ELFDATA2LSB = 1
|
||||
ELFDATA2MSB = 2
|
||||
Elf::DATANONE = 0
|
||||
Elf::DATA2LSB = 1
|
||||
Elf::DATA2MSB = 2
|
||||
|
||||
SHT_NULL = 0
|
||||
SHT_PROGBITS = 1
|
||||
@@ -53,7 +53,7 @@ module ELF
|
||||
|
||||
ARM_INFLOOP = "\x08\xf0\x4f\xe2"
|
||||
|
||||
TARGET_ARM = [ELFCLASS32, ELFDATA2LSB, ABI_ARM, EM_ARM]
|
||||
TARGET_X86 = [ELFCLASS32, ELFDATA2LSB, ABI_SYSTEMV, EM_386]
|
||||
TARGET_ARM = [ELFCLASS32, Elf::DATA2LSB, ABI_ARM, EM_ARM]
|
||||
TARGET_X86 = [ELFCLASS32, Elf::DATA2LSB, ABI_SYSTEMV, EM_386]
|
||||
end
|
||||
end
|
@@ -1,3 +1,5 @@
|
||||
require_relative "section"
|
||||
|
||||
module Elf
|
||||
class NullSection < Section
|
||||
def initialize
|
||||
|
@@ -1,6 +1,9 @@
|
||||
require_relative "constants"
|
||||
require_relative "null_section"
|
||||
|
||||
module Elf
|
||||
class ObjectFile
|
||||
include ELF
|
||||
include Constants
|
||||
|
||||
def initialize(target)
|
||||
@target = target
|
||||
|
Reference in New Issue
Block a user