Depending on the endianness, predefine '__AARCH64EL__' or '__AARCH64EB__'. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- target-arm64.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target-arm64.c b/target-arm64.c index 8619bd842f9b..d92ab16be592 100644 --- a/target-arm64.c +++ b/target-arm64.c @@ -20,6 +20,11 @@ static void predefine_arm64(const struct target *self) predefine("__aarch64__", 1, "1"); + if (arch_big_endian) + predefine("__AARCH64EB__", 0, "1"); + else + predefine("__AARCH64EL__", 0, "1"); + if (cmodel) predefine_strong("__AARCH64_CMODEL_%s__", cmodel); } -- 2.27.0