library/src/ELF/ELF32/BP-ELFExtraction_mem.cc
// returns a formatted elf header from a file on the filesystem
returns a formatted elf header from a file on the filesystem
returns a formatted elf header from a file on the filesystem
P_ELF_HDR_32BIT ELF32_ExtractHeader_Mem(P_DEBUG_HANDLE dbgHandle, P_MEMORY_MAP memMap){
	P_ELF_HDR_32BIT header = (P_ELF_HDR_32BIT) bpmalloc(sizeof(ELF_HDR_32BIT));
		memset(header, 0x00, sizeof(ELF_HDR_32BIT));
	header = (P_ELF_HDR_32BIT) DebugReadMemory(dbgHandle, memMap->lowAddr, sizeof(ELF_HDR_32BIT));
	if(header == NULL){
		return NULL;
	}
	return header;
}
P_ELF_HDR_32BIT ELF32_ExtractHeader_Mem ( P_DEBUG_HANDLE dbgHandle , P_MEMORY_MAP memMap ) { P_ELF_HDR_32BIT header = ( P_ELF_HDR_32BIT ) bpmalloc ( sizeof ( ELF_HDR_32BIT ) ) ; memset ( header , 0x00 , sizeof ( ELF_HDR_32BIT ) ) ; header = ( P_ELF_HDR_32BIT ) DebugReadMemory ( dbgHandle , memMap -> lowAddr , sizeof ( ELF_HDR_32BIT ) ) ; if ( header == NULL ) { return NULL ; } return header ; }
returns a formatted elf header from a file on the filesystem
returns a formatted elf header from a file on the filesystem
// Retrieve memory