]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
perf build: Remove unused libbfd-buildid feature test
authorJames Clark <james.clark@linaro.org>
Tue, 23 Dec 2025 17:00:26 +0000 (17:00 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 6 Jan 2026 22:14:00 +0000 (19:14 -0300)
HAVE_LIBBFD_BUILDID_SUPPORT isn't used in the codebase so remove the
feature test that sets it.

Signed-off-by: James Clark <james.clark@linaro.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Bill Wendling <morbo@google.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Justin Stitt <justinstitt@google.com>
Cc: Leo Yan <leo.yan@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <nick.desaulniers+lkml@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/build/Makefile.feature
tools/build/feature/Makefile
tools/build/feature/test-libbfd-buildid.c [deleted file]
tools/perf/Makefile.config

index 362cf8f4a0a027048414e0ffd5d0280805fdf35c..bbaa88bb9b30537064a2783108efd4ec813b1a35 100644 (file)
@@ -71,7 +71,6 @@ FEATURE_TESTS_BASIC :=                  \
         gettid                         \
         glibc                           \
         libbfd                          \
-        libbfd-buildid                 \
         libelf                          \
         libelf-getphdrnum               \
         libelf-gelf_getnote             \
index 0d5a15654b17b20a9094c3cc0dc637f21ee01498..d84db7df7988ede57a10b84561a280150e6f558e 100644 (file)
@@ -13,7 +13,6 @@ FILES=                                          \
          test-gtk2-infobar.bin                  \
          test-hello.bin                         \
          test-libbfd.bin                        \
-         test-libbfd-buildid.bin               \
          test-disassembler-four-args.bin        \
          test-disassembler-init-styled.bin     \
          test-reallocarray.bin                 \
@@ -268,9 +267,6 @@ $(OUTPUT)test-libpython.bin:
 $(OUTPUT)test-libbfd.bin:
        $(BUILD_BFD)
 
-$(OUTPUT)test-libbfd-buildid.bin:
-       $(BUILD_BFD) || $(BUILD_BFD) -liberty || $(BUILD_BFD) -liberty -lz
-
 $(OUTPUT)test-disassembler-four-args.bin:
        $(BUILD_BFD) -lopcodes || $(BUILD_BFD) -lopcodes -liberty || \
        $(BUILD_BFD) -lopcodes -liberty -lz
diff --git a/tools/build/feature/test-libbfd-buildid.c b/tools/build/feature/test-libbfd-buildid.c
deleted file mode 100644 (file)
index 157644b..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-#include <bfd.h>
-
-int main(void)
-{
-       bfd *abfd = bfd_openr("Pedro", 0);
-       return abfd && (!abfd->build_id || abfd->build_id->size > 0x506564726f);
-}
index 85075de2aedd8d29d350248f2deb14837cfb4152..fb1cf2bf5d8360a4c6be189b048a18fcfd09faa0 100644 (file)
@@ -935,7 +935,6 @@ ifdef BUILD_NONDISTRO
   $(call feature_check,libbfd)
   $(call feature_check,disassembler-four-args)
   $(call feature_check,disassembler-init-styled)
-  $(call feature_check,libbfd-buildid)
   $(call feature_check,libbfd-liberty)
   $(call feature_check,libbfd-liberty-z)
 
@@ -953,12 +952,6 @@ ifdef BUILD_NONDISTRO
   CXXFLAGS += -DHAVE_LIBBFD_SUPPORT
   $(call detected,CONFIG_LIBBFD)
 
-  ifeq ($(feature-libbfd-buildid), 1)
-    CFLAGS += -DHAVE_LIBBFD_BUILDID_SUPPORT
-  else
-    $(warning Old version of libbfd/binutils things like PE executable profiling will not be available)
-  endif
-
   ifeq ($(feature-disassembler-four-args), 1)
     CFLAGS += -DDISASM_FOUR_ARGS_SIGNATURE
   endif