node/lib/metasm/metasm/exe_format/elf_decode.rb
# decodes the dynamic segment, fills segments.encoded
decodes the dynamic segment, fills segments.encoded
decodes the dynamic segment fills segments . encoded
def decode_segments
		if @load_address == 0 and @segments.find { |s| s.type == 'LOAD' and s.vaddr > @encoded.length }
			@load_address = @segments.find_all { |s| s.type == 'LOAD' }.map { |s| s.vaddr }.min
		end
		decode_segments_dynamic
		@segments.each { |s|
			if s.type == 'LOAD'
				s.encoded = @encoded[addr_to_off(s.vaddr), s.memsz]
			end
		}
	end
def decode_segments if @load_address == 0 and @segments . find { | s | s . type == 'LOAD' and s . vaddr > @encoded . length } @load_address = @segments . find_all { | s | s . type == 'LOAD' } . map { | s | s . vaddr } . min end decode_segments_dynamic @segments . each { | s | if s . type == 'LOAD' s . encoded = @encoded [ addr_to_off ( s . vaddr ) , s . memsz ] end } end
decodes the dynamic segment, fills segments.encoded
decodes the dynamic segment fills segments . encoded