Ignore:
Timestamp:
Feb 14, 2007, 11:12:44 AM (18 years ago)
Author:
bird
Message:

off_t -> KLDRFOFF.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdrModMachO.c

    r2972 r2974  
    6868    /** The file offset of this section.
    6969     * This is -1 if the section doesn't have a file backing. */
    70     off_t                   offFile;
     70    KLDRFOFF                offFile;
    7171    /** The number of fixups. */
    7272    uint32_t                cFixups;
     
    7575    /** The file offset of the fixups for this section.
    7676     * This is -1 if the section doesn't have any fixups. */
    77     off_t                   offFixups;
     77    KLDRFOFF                offFixups;
    7878    /** Mach-O section flags. */
    7979    uint32_t                fFlags;
     
    128128
    129129    /** The offset of the symbol table. */
    130     off_t                   offSymbols;
     130    KLDRFOFF                offSymbols;
    131131    /** The number of symbols. */
    132132    uint32_t                cSymbols;
     
    134134    void                   *pvaSymbols;
    135135    /** The offset of the string table. */
    136     off_t                   offStrings;
     136    KLDRFOFF                offStrings;
    137137    /** The size of the of the string table. */
    138138    uint32_t                cchStrings;
     
    168168/*static int  kldrModMachOLoadLoadCommands(PKLDRMODMACHO pModMachO);*/
    169169static int  kldrModMachOLoadObjSymTab(PKLDRMODMACHO pModMachO);
    170 static int  kldrModMachOLoadFixups(PKLDRMODMACHO pModMachO, off_t offFixups, uint32_t cFixups, macho_relocation_info_t **ppaFixups);
     170static int  kldrModMachOLoadFixups(PKLDRMODMACHO pModMachO, KLDRFOFF offFixups, uint32_t cFixups, macho_relocation_info_t **ppaFixups);
    171171static int  kldrModMachOMapVirginBits(PKLDRMODMACHO pModMachO);
    172172
     
    197197 * @param   ppMod           Where to store the module instance pointer.
    198198 */
    199 static int kldrModMachOCreate(PCKLDRMODOPS pOps, PKLDRRDR pRdr, off_t offNewHdr, PPKLDRMOD ppMod)
     199static int kldrModMachOCreate(PCKLDRMODOPS pOps, PKLDRRDR pRdr, KLDRFOFF offNewHdr, PPKLDRMOD ppMod)
    200200{
    201201    PKLDRMODMACHO pModMachO;
     
    602602                    if (    pSect->nreloc
    603603                        &&  (   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)
    605605                        return KLDR_ERR_MACHO_BAD_SECTION;
    606606
     
    904904                                    /* more checks? */
    905905                                    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;
    907907                                    else
    908908                                    {
     
    22052205 * @param   ppaFixups       Where to put the pointer to the allocated fixup array.
    22062206 */
    2207 static int  kldrModMachOLoadFixups(PKLDRMODMACHO pModMachO, off_t offFixups, uint32_t cFixups, macho_relocation_info_t **ppaFixups)
     2207static int  kldrModMachOLoadFixups(PKLDRMODMACHO pModMachO, KLDRFOFF offFixups, uint32_t cFixups, macho_relocation_info_t **ppaFixups)
    22082208{
    22092209    macho_relocation_info_t *paFixups;
Note: See TracChangeset for help on using the changeset viewer.