Changeset 388 for trunk/softs/tsar_boot/src/boot_elf_loader.c
- Timestamp:
- May 16, 2013, 3:01:37 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/tsar_boot/src/boot_elf_loader.c
r292 r388 73 73 { 74 74 boot_puts ( 75 76 77 78 75 "ERROR: " 76 "IOC_FAILED" 77 "\n" 78 ); 79 79 80 80 boot_exit(); 81 81 } 82 82 83 83 nb_block += 1; 84 84 nb_available = 512; … … 102 102 nb_rest = elf_header_ptr->e_phnum * elf_header_ptr->e_phentsize; 103 103 104 105 106 107 108 109 110 111 112 113 114 115 ); 116 117 118 119 120 121 122 123 124 104 /* Verification of ELF Magic Number */ 105 if ( 106 (elf_header_ptr->e_ident[EI_MAG0] != ELFMAG0) || 107 (elf_header_ptr->e_ident[EI_MAG1] != ELFMAG1) || 108 (elf_header_ptr->e_ident[EI_MAG2] != ELFMAG2) || 109 (elf_header_ptr->e_ident[EI_MAG3] != ELFMAG3) ) 110 { 111 boot_puts( 112 "ERROR: " 113 "Input file does not use ELF format" 114 "\n" 115 ); 116 117 boot_exit(); 118 } 119 120 /* 121 * Verification of Program Headers table size. It must be 122 * smaller than the work size allocated for the 123 * elf_pht[PHDR_ARRAY_SIZE] array 124 **/ 125 125 if (elf_header_ptr->e_phnum > PHDR_ARRAY_SIZE) 126 126 { 127 127 boot_puts( 128 129 130 131 132 128 "ERROR: " 129 "ELF PHDR table size is bigger than " 130 "the allocated work space" 131 "\n" 132 ); 133 133 134 134 boot_exit(); … … 257 257 258 258 boot_puts ( 259 260 261 259 "Finishing boot_elf_loader function.\n" 260 "Entry point address: " 261 ); 262 262 boot_putx(elf_header_ptr->e_entry); 263 263 boot_puts("\n");
Note: See TracChangeset
for help on using the changeset viewer.