summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWANG Xuerui <git@xen0n.name>2023-02-25 01:49:07 +0800
committerPaul Moore <paul@paul-moore.com>2023-03-31 14:35:55 -0400
commit49a382ddb48baf8496cf15bd2b491c83ac1f8039 (patch)
tree6e68d9cca81a4a3b51f6349f3a6a2b0840f3f769
parentd5f77038335d523da509e0c246da8be794c511b7 (diff)
downloadlibseccomp-49a382ddb48baf8496cf15bd2b491c83ac1f8039.tar.gz
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 <git@xen0n.name> Acked-by: Tom Hromatka <tom.hromatka@oracle.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
-rw-r--r--src/arch.c2
-rw-r--r--tools/util.c2
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__