mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-25 06:09:50 +00:00
coff: Remove debug prints.
This commit is contained in:
parent
d31c3623cc
commit
dff9e0d420
@ -61,13 +61,14 @@ static int r_bin_coff_init_hdr(struct r_bin_coff_obj *obj)
|
||||
r_mem_copyendian((ut8*)&(obj->hdr.flags), obj->b->buf + offset,
|
||||
sizeof(ut16), obj->endian);
|
||||
|
||||
if (obj->hdr.flags & IMAGE_FLAGS_TI_F_LITTLE) {
|
||||
obj->endian = LIL_ENDIAN;
|
||||
}
|
||||
offset += sizeof(ut16);
|
||||
|
||||
if (obj->hdr.machine == IMAGE_FILE_TI_COFF) {
|
||||
r_mem_copyendian((ut8*)&(obj->hdr.target_id), obj->b->buf + offset,
|
||||
sizeof(ut16), obj->endian);
|
||||
|
||||
printf("%x\n", obj->hdr.target_id);
|
||||
}
|
||||
|
||||
return R_TRUE;
|
||||
@ -181,6 +182,7 @@ static int r_bin_coff_init_scn_hdr(struct r_bin_coff_obj *obj)
|
||||
r_mem_copyendian((ut8*)&(obj->scn_hdrs[i].flags),
|
||||
obj->b->buf + offset, sizeof(ut32), obj->endian);
|
||||
|
||||
|
||||
offset += sizeof(ut32);
|
||||
}
|
||||
|
||||
|
@ -59,8 +59,6 @@ static RList *entries(RBinFile *arch)
|
||||
}
|
||||
}
|
||||
|
||||
printf("offset %x rva %x\n", ptr->offset, ptr->rva);
|
||||
|
||||
r_list_append(ret, ptr);
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user