outputting entries to get jumps rights

This commit is contained in:
Torsten Ruger 2014-05-21 19:04:16 +03:00
parent 2df2dcc528
commit 127ce5a5d9

View File

@ -22,7 +22,7 @@ module Elf
binary = program.assemble(StringIO.new )
# blocks = program.functions.collect{ |f| [f.entry , f.exit , f.body] }
blocks = program.functions.collect{ |f| [f.body] }
blocks = program.functions.collect{ |f| [f.entry] }
blocks += [program.entry , program.exit , program.main]
blocks.flatten.each do |b|
add_symbol b.name.to_s , b.position