diff options
Diffstat (limited to 'target-arm64.c')
-rw-r--r-- | target-arm64.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/target-arm64.c b/target-arm64.c index bfada515..1efd0899 100644 --- a/target-arm64.c +++ b/target-arm64.c @@ -3,6 +3,12 @@ #include "machine.h" +static void init_arm64(const struct target *self) +{ + if (arch_cmodel == CMODEL_UNKNOWN) + arch_cmodel = CMODEL_SMALL; +} + const struct target target_arm64 = { .mach = MACH_ARM64, .bitness = ARCH_LP64, @@ -11,4 +17,6 @@ const struct target target_arm64 = { .unsigned_char = 1, .wchar = &uint_ctype, + + .init = init_arm64, }; |