Changeset 2857 for trunk/kLdr/kLdr.h
- Timestamp:
- Nov 5, 2006, 5:12:13 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kLdr/kLdr.h
r2856 r2857 387 387 /** The length of the segment name. */ 388 388 uint32_t cchName; 389 /** The segment protection. */ 390 KLDRPROT enmProt; 389 391 /** The size of the segment. */ 390 392 KLDRSIZE cb; … … 396 398 * mapped or if the image doesn't have link addresses. */ 397 399 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;403 400 /** File offset of the segment. 404 401 * Set to -1 if no file backing (like BSS). */ … … 407 404 * Set to -1 if no file backing (like BSS). */ 408 405 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; 409 411 } KLDRSEG; 410 412 /** Pointer to a loader segment. */ … … 1003 1005 * kLdrModUnmap() should not called without being preceeded by a kLdrModMap(). */ 1004 1006 #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 1005 1012 1006 1013 /** @name kLdrModPE status codes … … 1019 1026 /** Forwarder module not found in the import descriptor table. */ 1020 1027 #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) 1021 1032 /** @} */ 1022 1033
Note:
See TracChangeset
for help on using the changeset viewer.