Commit fb169502 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: Extend the ELF image management to PE modules so we get a rather…

dbghelp: Extend the ELF image management to PE modules so we get a rather uniform interface to image manipulation.
parent 770f0d83
......@@ -78,6 +78,21 @@ struct elf_file_map
const char* mapped;
}* sect;
};
#endif
struct pe_file_map
{
HANDLE hMap;
IMAGE_NT_HEADERS ntheader;
unsigned full_count;
void* full_map;
struct
{
IMAGE_SECTION_HEADER shdr;
const char* mapped;
}* sect;
const char* strtable;
};
struct elf_section_map
{
......@@ -85,10 +100,20 @@ struct elf_section_map
long sidx;
};
struct pe_section_map
{
struct pe_file_map* fmap;
long sidx;
};
extern BOOL elf_find_section(struct elf_file_map* fmap, const char* name,
unsigned sht, struct elf_section_map* esm);
extern const char* elf_map_section(struct elf_section_map* esm);
extern void elf_unmap_section(struct elf_section_map* esm);
extern unsigned elf_get_map_size(const struct elf_section_map* esm);
#endif
extern BOOL pe_find_section(struct pe_file_map* fmap, const char* name,
struct pe_section_map* psm);
extern const char* pe_map_section(struct pe_section_map* psm);
extern void pe_unmap_section(struct pe_section_map* psm);
extern unsigned pe_get_map_size(const struct pe_section_map* psm);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment