blob: cddabb82008566f2242c28f5a5b17a15ff41aadf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#include "symbol.h"
#include "target.h"
#include "machine.h"
static void init_arm64(const struct target *self)
{
if (arch_cmodel == CMODEL_UNKNOWN)
arch_cmodel = CMODEL_SMALL;
}
static void predefine_arm64(const struct target *self)
{
predefine("__aarch64__", 1, "1");
}
const struct target target_arm64 = {
.mach = MACH_ARM64,
.bitness = ARCH_LP64,
.big_endian = 0,
.unsigned_char = 1,
.wchar = &uint_ctype,
.init = init_arm64,
.predefine = predefine_arm64,
};
|