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()
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
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
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