Ignore:
Timestamp:
Jan 30, 2009, 7:27:46 AM (17 years ago)
Author:
bird
Message:

mach-o.h: AMD64 relocas and capabilities / features.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/k/kLdrFmts/mach-o.h

    r2 r20  
    278278#define CPU_SUBTYPE_POWERPC_SCVger  KI32_C(11)
    279279#define CPU_SUBTYPE_POWERPC_970     KI32_C(100)
     280
     281/* Subtype capability / feature bits, added in 10.5. X86 only? */
     282#define CPU_SUBTYPE_MASK            KU32_C(0xff000000)
     283#define CPU_SUBTYPE_LIB64           KU32_C(0x8000000)
    280284
    281285/** @} */
     
    895899} reloc_type_generic_t;
    896900
     901/**
     902 * Relocation type values for AMD64 (for r_type).
     903 */
     904typedef enum reloc_type_x86_64
     905{
     906    X86_64_RELOC_UNSIGNED = 0,      /**< Absolute address. */
     907    X86_64_RELOC_SIGNED,            /**< Signed displacement. */
     908    X86_64_RELOC_BRANCH,            /**< Branch displacement (jmp/call, adj by size). */
     909    X86_64_RELOC_GOT_LOAD,          /**< GOT entry load. */
     910    X86_64_RELOC_GOT,               /**< GOT reference. */                      // other GOT references
     911    X86_64_RELOC_SUBTRACTOR,        /**< ??. */
     912    X86_64_RELOC_SIGNED_1,          /**< Signed displacement with a -1 added. */
     913    X86_64_RELOC_SIGNED_2,          /**< Signed displacement with a -2 added. */
     914    X86_64_RELOC_SIGNED_4           /**< Signed displacement with a -4 added. */
     915} reloc_type_x86_64_t;
     916
    897917/** @} */
    898918
Note: See TracChangeset for help on using the changeset viewer.