Changeset 441 for trunk/kernel/libk
- Timestamp:
- May 9, 2018, 3:13:56 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/elf.c
r438 r441 46 46 && (header->e_ident[EI_DATA] == ELFDATA2LSB) 47 47 && (header->e_ident[EI_VERSION] == EV_CURRENT) 48 /*49 && (header->e_ident[EI_OSABI] == ELFOSABI_NONE)50 */51 48 && ((header->e_machine == EM_MIPS) || 52 49 (header->e_machine == EM_MIPS_RS3_LE) || … … 63 60 if( header->e_ident[EI_VERSION] != EV_CURRENT ) 64 61 printk("\n[ERROR] in %s : Elf is not in Current Version\n", __FUNCTION__); 65 /* 66 if( header->e_ident[EI_OSABI] != ELFOSABI_NONE ) 67 printk("\n[ERROR] in %s : Unexpected Elf ABI, need UNIX System V ABI\n", __FUNCTION__ ); 68 */ 62 69 63 if( (header->e_machine != EM_MIPS) && 70 64 (header->e_machine != EM_MIPS_RS3_LE) && … … 248 242 if( error ) 249 243 { 250 printk("\n[ERROR] in %s : failed to open file %s\n", __FUNCTION__ , pathname );244 printk("\n[ERROR] in %s : failed to open file <%s>\n", __FUNCTION__ , pathname ); 251 245 return -1; 252 246 } … … 263 257 if( error ) 264 258 { 265 printk("\n[ERROR] in %s : cannot get header f ile %s\n", __FUNCTION__ , pathname );259 printk("\n[ERROR] in %s : cannot get header for <%s>\n", __FUNCTION__ , pathname ); 266 260 vfs_close( file_xp , file_id ); 267 261 return -1; … … 270 264 #if (DEBUG_ELF_LOAD & 1) 271 265 if( DEBUG_ELF_LOAD < cycle ) 272 printk("\n[DBG] %s : loaded elf header for %s\n", __FUNCTION__ , pathname );266 printk("\n[DBG] %s : loaded elf header for <%s>\n", __FUNCTION__ , pathname ); 273 267 #endif 274 268 … … 310 304 #if (DEBUG_ELF_LOAD & 1) 311 305 if( DEBUG_ELF_LOAD < cycle ) 312 printk("\n[DBG] %s : segments array allocated for %s\n", __FUNCTION__ , pathname );306 printk("\n[DBG] %s : segments array allocated for <%s>\n", __FUNCTION__ , pathname ); 313 307 #endif 314 308 … … 330 324 #if (DEBUG_ELF_LOAD & 1) 331 325 if( DEBUG_ELF_LOAD < cycle ) 332 printk("\n[DBG] %s loaded segments descriptors for %s\n", __FUNCTION__ , pathname );326 printk("\n[DBG] %s loaded segments descriptors for <%s>\n", __FUNCTION__ , pathname ); 333 327 #endif 334 328
Note: See TracChangeset
for help on using the changeset viewer.