Flutter Engine
The Flutter Engine
mach_o.h
Go to the documentation of this file.
1// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4
5#ifndef RUNTIME_PLATFORM_MACH_O_H_
6#define RUNTIME_PLATFORM_MACH_O_H_
7
8#include <platform/globals.h>
9
10namespace dart {
11
12namespace mach_o {
13
14#pragma pack(push, 1)
15
16typedef int cpu_type_t;
17typedef int cpu_subtype_t;
18typedef int vm_prot_t;
19
21 uint32_t magic;
24 uint32_t filetype;
25 uint32_t ncmds;
26 uint32_t sizeofcmds;
27 uint32_t flags;
28};
29
30static constexpr uint32_t MH_MAGIC = 0xfeedface;
31static constexpr uint32_t MH_CIGAM = 0xcefaedfe;
32
34 uint32_t magic;
37 uint32_t filetype;
38 uint32_t ncmds;
39 uint32_t sizeofcmds;
40 uint32_t flags;
41 uint32_t reserved;
42};
43
44static constexpr uint32_t MH_MAGIC_64 = 0xfeedfacf;
45static constexpr uint32_t MH_CIGAM_64 = 0xcffaedfe;
46
48 uint32_t cmd;
49 uint32_t cmdsize;
50};
51
52static constexpr uint32_t LC_NOTE = 0x31;
54 uint32_t cmd;
55 uint32_t cmdsize;
56 char data_owner[16];
57 uint64_t offset;
58 uint64_t size;
59};
60
61#pragma pack(pop)
62
63} // namespace mach_o
64
65} // namespace dart
66
67#endif // RUNTIME_PLATFORM_MACH_O_H_
int cpu_subtype_t
Definition: mach_o.h:17
static constexpr uint32_t MH_CIGAM
Definition: mach_o.h:31
static constexpr uint32_t MH_CIGAM_64
Definition: mach_o.h:45
static constexpr uint32_t MH_MAGIC_64
Definition: mach_o.h:44
static constexpr uint32_t MH_MAGIC
Definition: mach_o.h:30
int vm_prot_t
Definition: mach_o.h:18
int cpu_type_t
Definition: mach_o.h:16
static constexpr uint32_t LC_NOTE
Definition: mach_o.h:52
Definition: dart_vm.cc:33
cpu_subtype_t cpusubtype
Definition: mach_o.h:36
cpu_subtype_t cpusubtype
Definition: mach_o.h:23
cpu_type_t cputype
Definition: mach_o.h:22