node/lib/metasm/metasm/exe_format/elf_decode.rb
# returns the target of a relocation using reloc.symbol
# may create new labels if the relocation targets a section
returns the target of a relocation using reloc.symbol
may create new labels if the relocation targets a section
returns the target of a relocation using reloc . symbol may create new labels if the relocation targets a section
def reloc_target(reloc)
		target = 0
		if reloc.symbol.kind_of?(Symbol)
			if reloc.symbol.type == 'SECTION'
				s = @sections[reloc.symbol.shndx]
				if not target = @encoded.inv_export[s.offset]
					target = new_label(s.name)
					@encoded.add_export(target, s.offset)
				end
			elsif reloc.symbol.name
				target = reloc.symbol.name
			end
		end
		target
	end
def reloc_target ( reloc ) target = 0 if reloc . symbol . kind_of? ( Symbol ) if reloc . symbol . type == 'SECTION' s = @sections [ reloc . symbol . shndx ] if not target = @encoded . inv_export [ s . offset ] target = new_label ( s . name ) @encoded . add_export ( target , s . offset ) end elsif reloc . symbol . name target = reloc . symbol . name end end target end
returns the target of a relocation using reloc.symbol
may create new labels if the relocation targets a section
returns the target of a relocation using reloc . symbol may create new labels if the relocation targets a section
reloc