def load_file(li, neflags, format):
idaapi.set_processor_type("arm", SETPROC_ALL|SETPROC_FATAL)
offs = 0
for s in segments:
start = s["start"]
length = s["len"]
name = s["name"]
seg_type = s["type"]
li.file2base(offs, start, start+length, True)
idaapi.add_segm(0, start, start+length, name, seg_type)
offs += length
create_modem_hdr_struct()
add_modem_hdr_struct(8*4 + segments[0]["start"]) #this might fail unless we carve out a DATA segment from the CODE segment for it.
print "Samsung Shannon image loaded."
return 1
评论列表
文章目录