diff options
author | WANG Xuerui <git@xen0n.name> | 2023-02-25 01:49:07 +0800 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2023-03-31 14:35:55 -0400 |
commit | 49a382ddb48baf8496cf15bd2b491c83ac1f8039 (patch) | |
tree | 6e68d9cca81a4a3b51f6349f3a6a2b0840f3f769 | |
parent | d5f77038335d523da509e0c246da8be794c511b7 (diff) | |
download | libseccomp-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.c | 2 | ||||
-rw-r--r-- | tools/util.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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__ |