node/lib/metasm/metasm/exe_format/elf_encode.rb
def invalidate_header
		@header.shoff = @header.shnum = nil
		@header.phoff = @header.phnum = nil
		@header.shstrndx = nil
		@sections.to_a.each { |s|
			s.name_p = nil
			s.offset = nil
		}
		@segments.to_a.each { |s|
			s.offset = nil
		}
		self
	end
# resets the fields of the elf headers that should be recalculated, eg phdr offset
resets the fields of the elf headers that should be recalculated, eg phdr offset
resets the fields of the elf headers that should be recalculated eg phdr offset
def invalidate_header
		@header.shoff = @header.shnum = nil
		@header.phoff = @header.phnum = nil
		@header.shstrndx = nil
		@sections.to_a.each { |s|
			s.name_p = nil
			s.offset = nil
		}
		@segments.to_a.each { |s|
			s.offset = nil
		}
		self
	end
def invalidate_header @header . shoff = @header . shnum = nil @header . phoff = @header . phnum = nil @header . shstrndx = nil @sections . to_a . each { | s | s . name_p = nil s . offset = nil } @segments . to_a . each { | s | s . offset = nil } self end
resets the fields of the elf headers that should be recalculated, eg phdr offset
resets the fields of the elf headers that should be recalculated eg phdr offset