while coded
This commit is contained in:
@ -21,8 +21,8 @@ module Elf
|
||||
|
||||
binary = program.assemble(StringIO.new )
|
||||
|
||||
# blocks = program.functions.collect{ |f| [f.entry , f.exit , f.body] }
|
||||
blocks = program.functions.collect{ |f| [f.entry] }
|
||||
blocks = []
|
||||
program.functions.each {|f| blocks += f.blocks }
|
||||
blocks += [program.entry , program.exit , program.main]
|
||||
blocks.flatten.each do |b|
|
||||
add_symbol b.name.to_s , b.position
|
||||
|
Reference in New Issue
Block a user