outputting entries to get jumps rights
This commit is contained in:
parent
2df2dcc528
commit
127ce5a5d9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user