Changeset 2974 for trunk/kLdr/kLdrModMachO.c
- Timestamp:
- Feb 14, 2007, 11:12:44 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kLdr/kLdrModMachO.c
r2972 r2974 68 68 /** The file offset of this section. 69 69 * This is -1 if the section doesn't have a file backing. */ 70 off_toffFile;70 KLDRFOFF offFile; 71 71 /** The number of fixups. */ 72 72 uint32_t cFixups; … … 75 75 /** The file offset of the fixups for this section. 76 76 * This is -1 if the section doesn't have any fixups. */ 77 off_toffFixups;77 KLDRFOFF offFixups; 78 78 /** Mach-O section flags. */ 79 79 uint32_t fFlags; … … 128 128 129 129 /** The offset of the symbol table. */ 130 off_toffSymbols;130 KLDRFOFF offSymbols; 131 131 /** The number of symbols. */ 132 132 uint32_t cSymbols; … … 134 134 void *pvaSymbols; 135 135 /** The offset of the string table. */ 136 off_toffStrings;136 KLDRFOFF offStrings; 137 137 /** The size of the of the string table. */ 138 138 uint32_t cchStrings; … … 168 168 /*static int kldrModMachOLoadLoadCommands(PKLDRMODMACHO pModMachO);*/ 169 169 static int kldrModMachOLoadObjSymTab(PKLDRMODMACHO pModMachO); 170 static int kldrModMachOLoadFixups(PKLDRMODMACHO pModMachO, off_toffFixups, uint32_t cFixups, macho_relocation_info_t **ppaFixups);170 static int kldrModMachOLoadFixups(PKLDRMODMACHO pModMachO, KLDRFOFF offFixups, uint32_t cFixups, macho_relocation_info_t **ppaFixups); 171 171 static int kldrModMachOMapVirginBits(PKLDRMODMACHO pModMachO); 172 172 … … 197 197 * @param ppMod Where to store the module instance pointer. 198 198 */ 199 static int kldrModMachOCreate(PCKLDRMODOPS pOps, PKLDRRDR pRdr, off_toffNewHdr, PPKLDRMOD ppMod)199 static int kldrModMachOCreate(PCKLDRMODOPS pOps, PKLDRRDR pRdr, KLDRFOFF offNewHdr, PPKLDRMOD ppMod) 200 200 { 201 201 PKLDRMODMACHO pModMachO; … … 602 602 if ( pSect->nreloc 603 603 && ( pSect->reloff > cbFile 604 || (uint64_t)pSect->reloff + ( off_t)pSect->nreloc * sizeof(macho_relocation_info_t)) > cbFile)604 || (uint64_t)pSect->reloff + (KLDRFOFF)pSect->nreloc * sizeof(macho_relocation_info_t)) > cbFile) 605 605 return KLDR_ERR_MACHO_BAD_SECTION; 606 606 … … 904 904 /* more checks? */ 905 905 if (fOk) 906 pSeg[-1].cbFile = ( off_t)(pSect->addr - pSeg[-1].LinkAddress) + pSect->size;906 pSeg[-1].cbFile = (KLDRFOFF)(pSect->addr - pSeg[-1].LinkAddress) + pSect->size; 907 907 else 908 908 { … … 2205 2205 * @param ppaFixups Where to put the pointer to the allocated fixup array. 2206 2206 */ 2207 static int kldrModMachOLoadFixups(PKLDRMODMACHO pModMachO, off_toffFixups, uint32_t cFixups, macho_relocation_info_t **ppaFixups)2207 static int kldrModMachOLoadFixups(PKLDRMODMACHO pModMachO, KLDRFOFF offFixups, uint32_t cFixups, macho_relocation_info_t **ppaFixups) 2208 2208 { 2209 2209 macho_relocation_info_t *paFixups;
Note:
See TracChangeset
for help on using the changeset viewer.