From 49a382ddb48baf8496cf15bd2b491c83ac1f8039 Mon Sep 17 00:00:00 2001 From: WANG Xuerui Date: Sat, 25 Feb 2023 01:49:07 +0800 Subject: arch,tools: change macros used to detect LoongArch64 to __loongarch_lp64 According to the LoongArch Toolchain Conventions [1], `__loongarch64` is already deprecated for a while. What we care about here is the ABI data model, so change the `__loongarch64` to `__loongarch_lp64` instead. [1]: https://loongson.github.io/LoongArch-Documentation/LoongArch-toolchain-conventions-EN.html Signed-off-by: WANG Xuerui Acked-by: Tom Hromatka Signed-off-by: Paul Moore --- src/arch.c | 2 +- tools/util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arch.c b/src/arch.c index 8c45fa3..50a2321 100644 --- a/src/arch.c +++ b/src/arch.c @@ -64,7 +64,7 @@ const struct arch_def *arch_def_native = &arch_def_x86_64; const struct arch_def *arch_def_native = &arch_def_arm; #elif __aarch64__ const struct arch_def *arch_def_native = &arch_def_aarch64; -#elif __loongarch64 +#elif __loongarch_lp64 const struct arch_def *arch_def_native = &arch_def_loongarch64; #elif __mips__ && _MIPS_SIM == _MIPS_SIM_ABI32 #if __MIPSEB__ diff --git a/tools/util.c b/tools/util.c index 327fc14..f67dea7 100644 --- a/tools/util.c +++ b/tools/util.c @@ -44,7 +44,7 @@ #define ARCH_NATIVE AUDIT_ARCH_ARM #elif __aarch64__ #define ARCH_NATIVE AUDIT_ARCH_AARCH64 -#elif __loongarch64 +#elif __loongarch_lp64 #define ARCH_NATIVE AUDIT_ARCH_LOONGARCH64 #elif __mips__ && _MIPS_SIM == _MIPS_SIM_ABI32 #if __MIPSEB__ -- cgit v1.2.1