fix init jump bug

the label for the jump was not translated correctly
call needs to go through to_cpu to create single instance
on the way init order slightly changed
This commit is contained in:
Torsten Ruger
2018-05-01 19:19:04 +03:00
parent 3b6ff3d94f
commit dd2c2cb975
4 changed files with 16 additions and 10 deletions

View File

@ -9,8 +9,6 @@ module Elf
class ObjectWriter
def initialize( machine )
@machine = machine
@machine.position_all
@machine.create_binary
target = Elf::Constants::TARGET_ARM
@object = Elf::ObjectFile.new(target)
sym_strtab = Elf::StringTableSection.new(".strtab")