]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/mach_loader.h
xnu-6153.81.5.tar.gz
[apple/xnu.git] / bsd / kern / mach_loader.h
index 5a0f66ceb00bb4d9151c5723c74f693817990969..606d733fbcae749c3201cf9c35de59bd5b6f40c9 100644 (file)
@@ -86,6 +86,8 @@ typedef struct _load_result {
        off_t                   cs_end_offset;
        void                    *threadstate;
        size_t                  threadstate_sz;
+       uint32_t                ip_platform;
+       uint32_t                lr_sdk;
 } load_result_t;
 
 struct image_params;
@@ -96,6 +98,13 @@ load_return_t load_machfile(
        vm_map_t                *mapp,
        load_result_t           *result);
 
+load_return_t
+validate_potential_simulator_binary(
+       cpu_type_t               exectype,
+       struct image_params      *imgp,
+       off_t                    file_offset,
+       off_t                    macho_size);
+
 #define LOAD_SUCCESS            0
 #define LOAD_BADARCH            1       /* CPU type/subtype not found */
 #define LOAD_BADMACHO           2       /* malformed mach-o file */