コード例 #1
0
ファイル: loader_segload.py プロジェクト: simontoens/amitools
def loader_segload_sys_int_test(buildlibnix, mem_alloc):
  mem, alloc = mem_alloc
  lib_file = buildlibnix.make_lib('testnix')
  loader = SegmentLoader(alloc)
  info = loader.int_load_sys_seglist(lib_file)
  assert info
  info.seglist.free()
  assert alloc.is_all_free()
コード例 #2
0
def loader_segload_sys_int_test(buildlibnix, mem_alloc):
    mem, alloc = mem_alloc
    lib_file = buildlibnix.make_lib('testnix')
    loader = SegmentLoader(alloc)
    info = loader.int_load_sys_seglist(lib_file)
    assert info
    info.seglist.free()
    assert alloc.is_all_free()
コード例 #3
0
def load_lib(alloc, buildlibnix):
    lib_file = buildlibnix.make_lib("testnix")
    loader = SegmentLoader(alloc)
    info = loader.int_load_sys_seglist(lib_file)
    seg_list = info.seglist
    seg = seg_list.get_segment()
    addr = seg.get_addr()
    size = seg.get_size()
    end = seg.get_end()
    return seg_list, addr, size, end
コード例 #4
0
def load_lib(alloc, buildlibnix):
  lib_file = buildlibnix.make_lib('testnix')
  loader = SegmentLoader(alloc)
  info = loader.int_load_sys_seglist(lib_file)
  seg_list = info.seglist
  seg = seg_list.get_segment()
  addr = seg.get_addr()
  size = seg.get_size()
  end = seg.get_end()
  return seg_list, addr, size, end
コード例 #5
0
ファイル: atypes_resident.py プロジェクト: sheerun/amitools
def load_lib(mem, buildlibnix):
    lib_file = buildlibnix.make_lib('testnix')
    alloc = MemoryAlloc(mem)
    loader = SegmentLoader(alloc)
    info = loader.int_load_sys_seglist(lib_file)
    seg_list = info.seglist
    seg = seg_list.get_segment()
    addr = seg.get_addr()
    size = seg.get_size()
    end = seg.get_end()
    return addr, size, end