node/lib/metasm/metasm/exe_format/elf_encode.rb
def encode_reorder_symbols
		gnu_hash_bucket_length = 42	# TODO
		@symbols[1..-1] = @symbols[1..-1].sort_by { |s|
			if s.bind != 'GLOBAL'
				-2
			elsif s.shndx == 'UNDEF' or not s.name
				-1
			else
				ELF.gnu_hash_symbol_name(s.name) % gnu_hash_bucket_length
			end
		}
	end
# reorders self.symbols according to their gnu_hash
reorders self.symbols according to their gnu_hash
reorders self . symbols according to their gnu_hash
def encode_reorder_symbols
		gnu_hash_bucket_length = 42	
		@symbols[1..-1] = @symbols[1..-1].sort_by { |s|
			if s.bind != 'GLOBAL'
				-2
			elsif s.shndx == 'UNDEF' or not s.name
				-1
			else
				ELF.gnu_hash_symbol_name(s.name) % gnu_hash_bucket_length
			end
		}
	end
def encode_reorder_symbols gnu_hash_bucket_length = 42 @symbols [ 1 .. - 1 ] = @symbols [ 1 .. - 1 ] . sort_by { | s | if s . bind != 'GLOBAL' - 2 elsif s . shndx == 'UNDEF' or not s . name - 1 else ELF . gnu_hash_symbol_name ( s . name ) % gnu_hash_bucket_length end } end
reorders self.symbols according to their gnu_hash
reorders self . symbols according to their gnu_hash
# TODO