From 3ac0b80f0147216aefb33a4e259efe58dd722a33 Mon Sep 17 00:00:00 2001 From: yueyuankun Date: Wed, 29 May 2024 09:26:14 +0800 Subject: [PATCH] Fix build error on loongarch64 (cherry picked from commit 6504bbe2adc56164ca144197c50f1ffffcf13b3b) --- AFLplusplus.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/AFLplusplus.spec b/AFLplusplus.spec index 38ffd4d..efc53be 100644 --- a/AFLplusplus.spec +++ b/AFLplusplus.spec @@ -2,7 +2,7 @@ Name: AFLplusplus Version: 4.10c Summary: Practical, instrumentation-driven fuzzer for binary formats License: Apache 2.0 -Release: 2 +Release: 3 URL: https://github.com/AFLplusplus/AFLplusplus Source0: https://github.com/AFLplusplus/AFLplusplus/archive/refs/tags/v%{version}.tar.gz @@ -112,6 +112,11 @@ mv $RPM_BUILD_ROOT%{_pkgdocdir} pkg-docs %else %{afl_helper_path}/afl-compiler-rt-64.o %endif +# LoongArch64 clang compiler can compile afl-compiler-rt-32.o on 64_bit platform. +# For details, see compile log. +%ifarch loongarch64 +%exclude %{afl_helper_path}/afl-compiler-rt-32.o +%endif %{afl_helper_path}/afl-compiler-rt.o %{afl_helper_path}/afl-gcc-cmplog-pass.so %{afl_helper_path}/afl-gcc-cmptrs-pass.so @@ -198,6 +203,12 @@ mv $RPM_BUILD_ROOT%{_pkgdocdir} pkg-docs %changelog +* Wed May 29 2024 yueyuankun - 4.10c-3 +- Type: compile +- ID:T NA +- SUG: NA +- DESC: Fix build error on loongarch64 + * Thu Apr 25 2024 liyancheng <412998149@qq.com> - 4.10c-2 - Type: Update - ID: NA -- Gitee