11 ROSE_ASSERT(fhdr!=NULL);
19 fprintf(stderr,
"SgAsmPEExportDirectory::ctor: error: export directory at rva 0x%08"PRIx64
22 fprintf(stderr,
"Memory map in effect at time of error:\n");
25 memset(&disk, 0,
sizeof disk);
46 fprintf(stderr,
"SgAsmPEExportDirectory::ctor: warning: directory name at rva 0x%08"PRIx64
49 fprintf(stderr,
"Memory map in effect at time of error:\n");
52 memset(&disk, 0,
sizeof disk);
64 sprintf(p,
"%sPEExportDirectory[%zd].", prefix, idx);
66 sprintf(p,
"%sPEExportDirectory.", prefix);
70 fprintf(f,
"%s%-*s = \"%s\"\n", p, w,
"name",
p_name->
get_string(
true).c_str());
71 fprintf(f,
"%s%-*s = 0x%08x (%u)\n", p, w,
"res1",
p_res1,
p_res1);
72 fprintf(f,
"%s%-*s = %lu %s", p, w,
"timestamp", (
unsigned long)
p_timestamp, ctime(&p_timestamp));
73 fprintf(f,
"%s%-*s = %u\n", p, w,
"vmajor",
p_vmajor);
74 fprintf(f,
"%s%-*s = %u\n", p, w,
"vminor",
p_vminor);
76 fprintf(f,
"%s%-*s = %u\n", p, w,
"ord_base",
p_ord_base);
77 fprintf(f,
"%s%-*s = %zu\n", p, w,
"expaddr_n",
p_expaddr_n);
78 fprintf(f,
"%s%-*s = %zu\n", p, w,
"nameptr_n",
p_nameptr_n);
103 sprintf(p,
"%sPEExportEntry[%zd].", prefix, idx);
105 sprintf(p,
"%sPEExportEntry.", prefix);
109 fprintf(f,
"%s%-*s = [ord %u] rva=%s \"%s\"", p, w,
"info",
149 ROSE_ASSERT(fhdr!=NULL);
164 fprintf(stderr,
"SgAsmPEExportSection::parse: error: export name #%zu at va 0x%08"PRIx64
165 " contains unmapped va 0x%08"PRIx64
"\n", i, nameptr_va, e.
va);
167 fprintf(stderr,
"Memory map in effect at time of error:\n");
180 fprintf(stderr,
"SgAsmPEExportSection::parse: error: export name %zu at va 0x%08"PRIx64
181 " contains unmapped virtual address 0x%08"PRIx64
"\n", i, fname_va, e.
va);
183 fprintf(stderr,
"Memory map in effect at time of error:\n");
195 fprintf(stderr,
"SgAsmPEExportSection::parse: error: ordinal #%zu at va 0x%08"PRIx64
196 " contains unmapped va 0x%08"PRIx64
"\n", i, ordinal_va, e.
va);
198 fprintf(stderr,
"Memory map in effect at time of error:\n");
212 ROSE_ASSERT(expaddr_idx < p_export_dir->get_expaddr_n());
218 fprintf(stderr,
"SgAsmPEExportSection::parse: error: export address #%zu at va 0x%08"PRIx64
219 " contains unmapped va 0x%08"PRIx64
"\n", i, expaddr_va, e.
va);
221 fprintf(stderr,
"Memory map in effect at time of error:\n");
228 expaddr = 0xffffffff;
239 fprintf(stderr,
"SgAsmPEExportSection::parse: error: forwarder %zu at rva 0x%08"PRIx64
240 " contains unmapped virtual address 0x%08"PRIx64
"\n", i, expaddr.
get_rva(), e.
va);
242 fprintf(stderr,
"Memory map in effect at time of error:\n");
269 sprintf(p,
"%sPEExportSection[%zd].", prefix, idx);
271 sprintf(p,
"%sPEExportSection.", prefix);