Changeset 2843 for trunk/kLdr/kLdr.h


Ignore:
Timestamp:
Oct 30, 2006, 5:16:08 AM (19 years ago)
Author:
bird
Message:

executable bootstrapping.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdr.h

    r2842 r2843  
    545545/** Returns ALL kinds of symbols. The default is to only return public/exported symbols. */
    546546#define KLDRMOD_ENUM_SYMBOL_FLAGS_ALL       0x00000001
    547 /** Do a recursive initialization calls instead of defering them to the outermost call. */
    548 #define KLDRDYLD_LOAD_FLAGS_RECURSIVE_INIT  0x00000002
    549547/** @} */
    550548
     
    628626 * typical used when loading import/dep modules. */
    629627#define KLDRYDLD_LOAD_FLAGS_SPECIFIC_MODULE     0x00000002
    630 /** @todo more to come. */
    631 /** @} */
    632 
    633 
    634 int     kLdrDyldLoad(const char *pszDll, const char *pszDefPrefix, const char *pszDefSuffix, KLDRDYLDSEARCH enmSearch,
     628/** Do a recursive initialization calls instead of defering them to the outermost call. */
     629#define KLDRDYLD_LOAD_FLAGS_RECURSIVE_INIT      0x00000004
     630/** We're loading the executable module.
     631 * Internal flag which will be rejected by kLdrDyldLoad. */
     632#define KLDRDYLD_LOAD_FLAGS_EXECUTABLE          0x40000000
     633/** @} */
     634
     635
     636int     kLdrDyldLoad(const char *pszDll, const char *pszPrefix, const char *pszSuffix, KLDRDYLDSEARCH enmSearch,
    635637                     unsigned fFlags, PHKLDRMOD phMod, char *pszErr, size_t cchErr);
    636638int     kLdrDyldUnload(HKLDRMOD hMod);
    637 int     kLdrDyldFindByName(const char *pszDll, const char *pszDefPrefix, const char *pszDefSuffix, KLDRDYLDSEARCH enmSearch,
     639int     kLdrDyldFindByName(const char *pszDll, const char *pszPrefix, const char *pszSuffix, KLDRDYLDSEARCH enmSearch,
    638640                           unsigned fFlags, PHKLDRMOD phMod);
    639641int     kLdrDyldFindByAddress(uintptr_t Address, PHKLDRMOD phMod, uint32_t *piSegment, uintptr_t *poffSegment);
     
    691693    /** Flags. (Currently unused, MBZ.) */
    692694    uint32_t        fFlags;
     695    /** The search method to use when loading this executable. */
     696    KLDRDYLDSEARCH  enmSearch;
    693697    /** The executable file that the stub is supposed to load. */
    694698    char            szExecutable[260];
     699    /** The default prefix used when searching for DLLs. */
     700    char            szDefPrefix[16];
     701    /** The default suffix used when searching for DLLs. */
     702    char            szDefSuffix[16];
    695703    /** The LD_LIBRARY_PATH prefix for the process.. */
    696     char            szLibPath[4096 - 260 - sizeof(uint32_t)];
     704    char            szLibPath[4096 - sizeof(uint32_t) - sizeof(KLDRDYLDSEARCH) - 16 - 16 - 260];
    697705} KLDREXEARGS, *PKLDREXEARGS;
    698706
Note: See TracChangeset for help on using the changeset viewer.