Changeset 2857 for trunk/kLdr/kLdr.h


Ignore:
Timestamp:
Nov 5, 2006, 5:12:13 AM (19 years ago)
Author:
bird
Message:

Only the mapping left now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdr.h

    r2856 r2857  
    387387    /** The length of the segment name. */
    388388    uint32_t        cchName;
     389    /** The segment protection. */
     390    KLDRPROT        enmProt;
    389391    /** The size of the segment. */
    390392    KLDRSIZE        cb;
     
    396398     * mapped or if the image doesn't have link addresses. */
    397399    KLDRADDR        LinkAddress;
    398     /** The segment protection. */
    399     KLDRPROT        enmProt;
    400     /** The address the segment was mapped at by kLdrModMap().
    401      * Set to 0 if not mapped. */
    402     uintptr_t       MapAddress;
    403400    /** File offset of the segment.
    404401     * Set to -1 if no file backing (like BSS). */
     
    407404     * Set to -1 if no file backing (like BSS). */
    408405    off_t           cbFile;
     406    /** The address the segment was mapped at by kLdrModMap().
     407     * Set to 0 if not mapped. */
     408    uintptr_t       MapAddress;
     409    /** The size of the segment including the alignment gap up to the next segment when mapped. */
     410    size_t          cbMapped;
    409411} KLDRSEG;
    410412/** Pointer to a loader segment. */
     
    10031005 * kLdrModUnmap() should not called without being preceeded by a kLdrModMap(). */
    10041006#define KLDR_ERR_NOT_MAPPED                                 (KLDR_ERR_BASE + 54)
     1007/** Couldn't fit the address value into the field. Typically a relocation kind of error. */
     1008#define KLDR_ERR_ADDRESS_OVERFLOW                           (KLDR_ERR_BASE + 55)
     1009/** Thread attach failed. */
     1010#define KLDR_ERR_THREAD_ATTACH_FAILED                       (KLDR_ERR_BASE + 57)
     1011
    10051012
    10061013/** @name kLdrModPE status codes
     
    10191026/** Forwarder module not found in the import descriptor table. */
    10201027#define KLDR_ERR_PE_FORWARDER_IMPORT_NOT_FOUND              (KLDR_ERR_BASE_PE + 5)
     1028/** Bad PE fixups. */
     1029#define KLDR_ERR_PE_BAD_FIXUP                               (KLDR_ERR_BASE_PE + 6)
     1030/** Bad PE import (thunk). */
     1031#define KLDR_ERR_PE_BAD_IMPORT                              (KLDR_ERR_BASE_PE + 7)
    10211032/** @} */
    10221033
Note: See TracChangeset for help on using the changeset viewer.