loadElfLib.c
上传用户:nvosite88
上传日期:2007-01-17
资源大小:4983k
文件大小:159k
- *
- * loadElfModuleIsOk - check the object module format
- *
- * This routine contains the heuristic required to determine if the object
- * file belongs to the OMF handled by this OMF reader, with care for the target
- * architecture.
- * It is the underlying routine for loadElfFmtCheck().
- *
- * RETURNS: TRUE or FALSE if something prevent the loader to handle the module.
- */
- LOCAL BOOL loadElfModuleIsOk
- (
- Elf32_Ehdr * pHdr /* ELF module header */
- )
- {
- BOOL moduleIsForTarget = FALSE; /* TRUE if for target*/
- UINT16 targetMachine; /* target of module */
- BOOL dummy = FALSE;
- /* Check that the module begins with "