From ccf9522cae07ef4f85ec24e1ba139feef1b327f7 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 19 Nov 2021 12:36:15 +0000 Subject: [PATCH] 10.27: Annocheck: Skip missing fortify/warning notes for ARM32 --- annobin-global.h | 2 +- annocheck/hardened.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/annobin-global.h b/annobin-global.h index dcf0854..3bb8b29 100644 --- a/annobin-global.h +++ b/annobin-global.h @@ -19,7 +19,7 @@ extern "C" { /* The version of the package. NB/ This number is expected to be in the form "NNnn" where "NN" is major version number and "nn" is the minor version number. */ -#define ANNOBIN_VERSION 1026 +#define ANNOBIN_VERSION 1027 /* The version of the annotation specification supported. */ #define SPEC_VERSION 3 diff --git a/annocheck/hardened.c b/annocheck/hardened.c index 8b52264..0e80f25 100644 --- a/annocheck/hardened.c +++ b/annocheck/hardened.c @@ -4714,6 +4714,11 @@ finish (annocheck_data * data) skip (data, i, SOURCE_FINAL_SCAN, "kernel modules are not compiled with this feature"); else if (per_file.seen_tools & TOOL_GO) skip (data, i, SOURCE_FINAL_SCAN, "GO compilation does not use the C preprocessor"); + else if (per_file.e_machine == EM_ARM) + /* The macros file from redhat-rpm-config explicitly disables the annobin plugin for ARM32 + because of the problems reported in https://bugzilla.redhat.com/show_bug.cgi?id=1951492 + So until that issue is resolved (if it ever is), we can expect missing notes for ARM32. */ + skip (data, i, SOURCE_FINAL_SCAN, "ARM32 code is usually compiled without annobin plugin support"); else if (C_compiler_seen ()) fail (data, i, SOURCE_FINAL_SCAN, "no indication that the necessary option was used (and a C compiler was detected)"); else -- 2.43.5