diff --git a/lib/elf/object_writer.rb b/lib/elf/object_writer.rb index 17ee30b4..453346fc 100644 --- a/lib/elf/object_writer.rb +++ b/lib/elf/object_writer.rb @@ -17,7 +17,6 @@ module Elf @text = Elf::TextSection.new(".text") @object.add_section @text - @object_machine.run_passes assembler = Register::Assembler.new(@object_machine) set_text assembler.write_as_string diff --git a/test/virtual/test_hello.rb b/test/virtual/test_hello.rb index aa55e8aa..0c42b818 100644 --- a/test/virtual/test_hello.rb +++ b/test/virtual/test_hello.rb @@ -6,11 +6,11 @@ class HelloTest < MiniTest::Test def check machine = Virtual::Machine.boot expressions = machine.compile_main @string_input + puts Sof::Writer.write(machine.space) + machine.run_passes writer = Elf::ObjectWriter.new(machine) writer.save "hello.o" -# puts Sof::Writer.write(expressions) - puts Sof::Writer.write(machine.space) end def qtest_simplest_function